diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-03-26 11:32:41 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-03-26 13:15:58 +0100 |
commit | 42791a1a7ce08851a92db16ae8d7ce11ee8fb09b (patch) | |
tree | 9ac61d5767326da4adafcd51490fb7eeeb2a9fb4 /src/utils/boot.py | |
parent | 049b7a5a2b13a69448937aba275ec2f35407b95e (diff) |
revert 7f18485: improve uefi detection mechanism
Make is_uefi_supported() only check for /sys/firmware/efi as
get_efi_partition() will detect a missing ESP or an invalid
partition scheme. Stop using get_efi_partition() inside
is_uefi_supported() as the former is eventually called in every
UEFI related code.
UEFI supports both MBR and GPT as partition schemes and this is
a required change to handle the particular case of Windows not
being able to boot UEFI from a MBR partition scheme.
Diffstat (limited to 'src/utils/boot.py')
-rw-r--r-- | src/utils/boot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/boot.py b/src/utils/boot.py index 04cae8e..baa3f49 100644 --- a/src/utils/boot.py +++ b/src/utils/boot.py @@ -111,7 +111,7 @@ def boot_os_at(disk, part): if not mount_mkdir(device, mountpoint): raise RuntimeError(f'Cannot probe OS family. Unable to mount {device} at {esp_mountpoint}.') - is_uefi = is_uefi_supported(disk) + is_uefi = is_uefi_supported() if is_uefi: logging.info('UEFI support detected') else: |