summaryrefslogtreecommitdiffstats
path: root/src/utils/boot.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/boot.py')
-rw-r--r--src/utils/boot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/boot.py b/src/utils/boot.py
index baa3f49..1dcc655 100644
--- a/src/utils/boot.py
+++ b/src/utils/boot.py
@@ -57,7 +57,7 @@ def _boot_bios_windows(disk, part, mountpoint):
def _boot_uefi_windows(disk, part, mountpoint):
logging.info(f'Booting windows system')
bootlabel = f'Part-{disk:02d}-{part:02d}'
- esp, esp_disk, esp_part_number = get_efi_partition(disk)
+ esp, esp_disk, esp_part_number = get_efi_partition(disk, enforce_gpt=True)
esp_mountpoint = esp.replace('dev', 'mnt')
if not mount_mkdir(esp, esp_mountpoint):
raise RuntimeError(f'Unable to mount detected EFI System Partition at {esp} into {esp_mountpoint}')
@@ -82,7 +82,7 @@ def _boot_uefi_windows(disk, part, mountpoint):
def _boot_uefi_linux(disk, part, mountpoint):
logging.info(f'Booting Linux system')
bootlabel = f'Part-{disk:02d}-{part:02d}'
- esp, esp_disk, esp_part_number = get_efi_partition(disk)
+ esp, esp_disk, esp_part_number = get_efi_partition(disk, enforce_gpt=False)
esp_mountpoint = esp.replace('dev', 'mnt')
if not mount_mkdir(esp, esp_mountpoint):
raise RuntimeError(f'Unable to mount detected EFI System Partition at {esp} into {esp_mountpoint}')