Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-EFI systems are misdetected as EFI #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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