]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initial support for implementing the bootXXX.efi workaround
authorimp <imp@FreeBSD.org>
Fri, 9 Oct 2020 00:16:26 +0000 (00:16 +0000)
committerimp <imp@FreeBSD.org>
Fri, 9 Oct 2020 00:16:26 +0000 (00:16 +0000)
commitf452f73f9802d2a10a24471f5cf3ccda75f51bfa
tree21fa9d1b9a5feae127c01c796a5314fff9a19058
parent4a036532948179a68977a7b75c140aa83f51533c
Initial support for implementing the bootXXX.efi workaround

Too many version of UEFI firmware (so far only confirmed on amd64)
don't really support efibootmgr selection of boot. That's the most
reliable, when it works, since there's no guesswork. However, many do
not save, unmolested, the variables that efibootmgr sets, so as a
fallback we also install loader.efi as bootXXX.efi (where XXX is
either aa64 or x64) if it doesn't already exist in /efi/boot on the
ESP. The standard only defines this for removable devices, but it's
almost ubiquitously used as a fallback. Many BIOSes implement a drive
selection feature that takes over the efibootmgr protocol, rendinering
it useless (either generally, or for those vendors not on the short
list). bootxxx.efi works around this. However, we don't install it
unconditionally there, as that breaks some popular multi-boot setups.

MFC After: 1 week
Differential Revision: https://reviews.freebsd.org/D26428
usr.sbin/bsdinstall/scripts/bootconfig