Improve EFI detection by checking for /sys/firmware/efi master
authorMichael Prokop <mika@grml.org>
Fri, 2 Oct 2020 08:51:51 +0000 (10:51 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 2 Oct 2020 10:59:50 +0000 (12:59 +0200)
commit622ca58e0d5585069b51ecbb60d0a36eede4d53a
tree83e3359fa2a936372facaf454c95d8e169bbec57
parent8f673fa8ccb6723dd73670f6e4eb970fbb76e741
Improve EFI detection by checking for /sys/firmware/efi

It might be possible that we can load the efivars module, while
/sys/firmware/efi still doesn't exist and efibootmgr then fails
to execute.

We noticed this on Hetzner's Dell PowerEdgeâ„¢ R6515 DX181 server,
which was booted in BIOS mode via PXE, while the hardware itself
is EFI capable. Loading the efivars module worked there, but
invoking efibootmgr then fails, and the resulting system isn't
bootable.

Thanks: Darshaka Pathirana for reporting and feedback
grml-debootstrap