The efibootmgr package provides tools and libraries to manipulate EFI variables.
This package is known to build and work properly using an LFS-10.1 platform.
Download (HTTP): https://github.com/rhboot/efibootmgr/archive/17/efibootmgr-17.tar.gz
Download MD5 sum: 6ae315936d9bc8613b3a4cb8a4064128
Download size: 44 KB
Estimated disk space required: 592 KB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/efibootmgr
At first, fix an outdated hotfix declaration causing compilation failure:
sed -e '/extern int efi_set_verbose/d' -i src/efibootmgr.c
Build efibootmgr with the following commands:
make EFIDIR=LFS EFI_LOADER=grubx64.efi
This package does not have a test suite.
Now, as the root
user:
make install sbindir=/sbin EFIDIR=LFS
EFIDIR=LFS
: This option
specifies the distro's subdirectory name under /boot/efi/EFI
. The building system of this
package needs it to be set explicitly.
EFI_LOADER=grubx64.efi
:
This option specifies the name of the default EFI boot loader. It
is set to match the EFI boot loader provided by GRUB .
sbindir=/sbin
: Make
efibootmgr avaliable
even if /usr
is offline.
Last updated on 2021-02-21 03:35:58 +0800