gummiboot: add configuration file.

This makes it possible to easily disable the gummiboot kernel hook.

Change hook permissions to 744 to allow them to be read by anyone.
This commit is contained in:
Érico Rolim 2020-07-20 15:36:28 -03:00 committed by Danh Doan
parent d062d2f186
commit 8e9e4e1762
3 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,2 @@
# uncomment this line to disable the gummiboot hook
#GUMMIBOOT_DISABLE=1

View file

@ -7,6 +7,12 @@
PKGNAME="$1"
VERSION="$2"
. "$ROOTDIR/etc/default/gummiboot"
if [ "$GUMMIBOOT_DISABLE" ]; then
exit 0
fi
boot=$ROOTDIR/boot
entries=$boot/loader/entries
name=void-$VERSION

View file

@ -1,9 +1,10 @@
# Template file for 'gummiboot'
pkgname=gummiboot
version=48.1
revision=3
revision=4
archs="i686* x86_64* aarch64*"
build_style=gnu-configure
conf_files="/etc/default/gummiboot"
hostmakedepends="automake pkg-config libxslt docbook-xsl"
makedepends="gnu-efi-libs liblzma-devel libblkid-devel"
short_desc="Simple UEFI Boot Manager"
@ -26,8 +27,10 @@ pre_configure() {
}
post_install() {
vinstall ${FILESDIR}/kernel.d/gummiboot.post-install 750 \
vinstall ${FILESDIR}/kernel.d/gummiboot.post-install 744 \
etc/kernel.d/post-install 50-gummiboot
vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 750 \
vinstall ${FILESDIR}/kernel.d/gummiboot.post-remove 744 \
etc/kernel.d/post-remove 50-gummiboot
vinstall ${FILESDIR}/kernel.d/gummiboot.confd 644 \
etc/default gummiboot
}