From b16454975a54f8a191b08e12acb95af4652debca Mon Sep 17 00:00:00 2001 From: Neel Chotai Date: Sat, 27 Feb 2021 20:03:09 +0000 Subject: [PATCH] efibootmgr: correct install message, document mount instructions --- srcpkgs/efibootmgr/INSTALL.msg | 2 +- srcpkgs/efibootmgr/files/README.voidlinux | 5 +++++ srcpkgs/efibootmgr/template | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/efibootmgr/files/README.voidlinux diff --git a/srcpkgs/efibootmgr/INSTALL.msg b/srcpkgs/efibootmgr/INSTALL.msg index 2b27d196f3e..c1c3d065767 100644 --- a/srcpkgs/efibootmgr/INSTALL.msg +++ b/srcpkgs/efibootmgr/INSTALL.msg @@ -4,7 +4,7 @@ Enable this by editing /etc/default/efibootmgr-kernel-hook. The efi variables need to be accessible in order for this to work, so add this line to your fstab and reboot or mount manually: - efivarfs /sys/firmware/efi/efivars efivarfs 0 0 + efivarfs /sys/firmware/efi/efivars efivarfs defaults 0 0 ----------------------------------------------------------------------- Kernel cmd options can be configured in /etc/default/efibootmgr-kernel-hook, but you always have to reconfigure the kernel: diff --git a/srcpkgs/efibootmgr/files/README.voidlinux b/srcpkgs/efibootmgr/files/README.voidlinux new file mode 100644 index 00000000000..e95191f7d22 --- /dev/null +++ b/srcpkgs/efibootmgr/files/README.voidlinux @@ -0,0 +1,5 @@ +Some systems do not automatically mount efivars. If /sys/firmware/efi/efivars is empty, your system is affected. + +In order to to automatically mount efivars, add the following entry to /etc/fstab: + +efivarfs /sys/firmware/efi/efivars efivarfs defaults 0 0 diff --git a/srcpkgs/efibootmgr/template b/srcpkgs/efibootmgr/template index e9b1bff036a..ca131efb1b1 100644 --- a/srcpkgs/efibootmgr/template +++ b/srcpkgs/efibootmgr/template @@ -1,7 +1,7 @@ # Template file for 'efibootmgr' pkgname=efibootmgr version=17 -revision=3 +revision=4 hostmakedepends="pkg-config" makedepends="libefivar-devel popt-devel" short_desc="Tool to modify UEFI Firmware Boot Manager Variables" @@ -39,7 +39,7 @@ do_install() { } post_install() { - vlicense COPYING + vdoc ${FILESDIR}/README.voidlinux vmkdir etc/ vinstall "${FILESDIR}/efibootmgr-kernel-hook.confd" 644 etc/default efibootmgr-kernel-hook vinstall ${FILESDIR}/kernel.d/efibootmgr.post-install 744 \