summaryrefslogtreecommitdiffstats
path: root/src/live/ogOperations.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-07 09:46:41 +0100
committerlupoDharkael <izhe@hotmail.es>2024-03-08 12:43:10 +0100
commit7f18485effb300680241bbd84186fdd5c160ec26 (patch)
tree19b1562654245e12b02a6cc287bcac6cd1485b53 /src/live/ogOperations.py
parent9970c8e33d7a422e807a23af712236db01284f9a (diff)
utils: improve uefi detection mechanism
Checking the existence /sys/firmware/efi as it might appear sometimes in BIOS installs if the BIOS configuration is not proper. Checking for the EFI partition is the safest method to veryfy the install type.
Diffstat (limited to 'src/live/ogOperations.py')
-rw-r--r--src/live/ogOperations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py
index d5f22a9..5d9e898 100644
--- a/src/live/ogOperations.py
+++ b/src/live/ogOperations.py
@@ -262,7 +262,7 @@ class OgLiveOperations:
disk = request.getDisk()
partition = request.getPartition()
- if is_uefi_supported():
+ if is_uefi_supported(disk):
logging.info('UEFI support detected')
logging.info(f'Booting disk={disk} partition={partition}')
boot_os_at(int(disk), int(partition))