80.16. efivar-39
Read and write EFI variables — the library efibootmgr needs
39-1 · LGPL-2.1-or-later · 0.1 SBU · 692.8 KiB, 58 files · 41_system, 234 of 1047 · ports/core/boot/efivar
Homepage: https://github.com/rhboot/efivar
Why it is in KDOS. The comment above efivar and efibootmgr in script/phases/41_system/packages.d/boot.txt:
kinstall writes an EFI entry once. Every later firmware that reorders or drops it needs a tool on the RUNNING system, or a KDOS install that stops booting has no repair path outside a firmware menu.
Required by (2): efibootmgr, tpm2-tools.
Sources: efivar-39.tar.gz (452.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install efivar'
build.sh:
export CFLAGS="$CFLAGS -Wno-error -Wno-address -Wno-free-nonheap-object -Wno-stringop-overflow -Wno-array-bounds"
make ERRORFILE= HOST_MARCH= libdir=/usr/lib bindir=/usr/bin mandir=/usr/share/man
make ERRORFILE= HOST_MARCH= libdir=/usr/lib bindir=/usr/bin mandir=/usr/share/man DESTDIR=$PKG install
install -Dm644 docs/efidp_make_generic.3 "$PKG/usr/share/man/man3/efidp_make_generic.3"
Programs: efisecdb, efivar.
Libraries: libefiboot.so, libefisec.so, libefivar.so.
Directories: /usr/include/efivar, /usr/share/licenses/efivar.