Improve EFI detection by checking for /sys/firmware/efi
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)
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


No differences found