Introduction to efibootmgr

The efibootmgr package provides tools and libraries to manipulate EFI variables.

This package is known to build and work properly using an LFS-11.0 platform.

Package Information

efibootmgr Dependencies


efivar-37 and popt-1.18

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/efibootmgr

Installation of 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 EFIDIR=LFS

Command Explanations

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 .


Installed Programs: efibootdump and efibootmgr

Short Descriptions


is a tool to display individual UEFI boot options, from a file or an UEFI variable


is a tool to manipulate the UEFI Boot Manager

Last updated on