Skip to content

Conversation

@Low-power
Copy link
Contributor

@Low-power Low-power commented Jul 30, 2024

Currectly hw-probe detects an EFI system by checking either:

  • presence of /boot/efi directory, or
  • efi: line in kernel log.

Both methods however, are wrong, leading many non-EFI systems being misdetected.

For the presence of /boot/efi directory, it means the system may have a setup that supports booting via EFI; it doesn't necessarily means the running system was booted via EFI.

For the efi: line in kernel log, it only means the running Linux was configured to be EFI-aware. In fact, the efi: line of one of my system is:

[    0.000000] efi: UEFI not found.

Which actually indicates that EFI is not being used.

Remove both improper checkings, and check for /sys/firmware/efi directory instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant