Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow configuration to override the default ENV_FILE_NAME and FAT_ENV_FILENAME to support scenarios with multiple distributions or architectures. For multiple distributions, https://wiki.debian.org/UEFI explains: > Debian installs grub-efi for its EFI bootloader, as: > > Architecture Path > amd64 \EFI\debian\grubx64.efi > i386 \EFI\debian\grubia32.efi > arm64 \EFI\debian\grubaa64.efi > armhf \EFI\debian\grubarm.efi Other distributions use their own directories (eg \EFI\fedora, etc). EFI Boot Guard (EBG) looks for a specific data file (normally BGENV.DAT) which contains a single kernel configuration entry. Using the new --with-env-file-name option, each distribution builds and configures its own instance of EBG, which can find its corresponding data file (eg BGENV-DEBIAN.DAT, or EFI\debian\BGENV.DAT, etc). This also has the benefit of decoupling the distributions at boot so that a breaking EBG change to one distribution will not affect another. Signed-off-by: Earl Chew <earl_chew@yahoo.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
- Loading branch information