%general-entities; ]> $LastChangedBy: bdubbs $ $Date: 2021-02-21 03:35:58 +0800 (日, 2021-02-21) $ efivar-&efivar-version; efivar Introduction to efivar The efivar package provides tools and libraries to manipulate EFI variables. &lfs101_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &efivar-md5sum; Download size: &efivar-size; Estimated disk space required: &efivar-buildsize; Estimated build time: &efivar-time; Additional Downloads Required patch: User Notes: Installation of efivar At first, apply a patch to fix an issue breaking the build with GCC 9 or later: patch -Np1 -i ../efivar-37-gcc_9-1.patch Build efivar with the following commands: make CFLAGS="-O2 -Wno-stringop-truncation" The test suite of this package is dangerous. Running it may trigger firmware bugs and make your system unusable without using some special hardware to reprogram the firmware. Now, as the root user: make install LIBDIR=/usr/lib BINDIR=/bin Move the shared libraries to /lib, and recreate the symlinks in /usr/lib: mv /usr/lib/libefi{boot,var}.so.* /lib && ln -sfv ../../lib/$(readlink /usr/lib/libefiboot.so) /usr/lib/libefiboot.so && ln -sfv ../../lib/$(readlink /usr/lib/libefivar.so) /usr/lib/libefivar.so Command Explanations CFLAGS="-O2 -Wno-stringop-truncation": This option overrides the compiler flags defaulted by this package, to avoid build failure. LIBDIR=/usr/lib: This option overrides the default library directory of the package (/usr/lib64, which is not used by LFS.) BINDIR=/bin: Make efivar avaliable even if /usr is offline. Contents Installed Programs Installed Libraries Installed Directories efivar libefiboot.so and libefivar.so /usr/include/efivar Short Descriptions efivar is a tool to manipulate UEFI variables efivar libefiboot.so is a library used by efibootmgr libefiboot.so libefivar.so is a library for the manipulation of EFI variables libefiboot.so