diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/disk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/disk.py b/src/utils/disk.py index 94bbc65..2af1462 100644 --- a/src/utils/disk.py +++ b/src/utils/disk.py @@ -105,7 +105,7 @@ def get_efi_partition(disknum, enforce_gpt): disk = get_disks()[disk_index] cxt = fdisk.Context(f'/dev/{disk}') - if enforce_gpt and cxt.label == fdisk.FDISK_DISKLABEL_DOS: + if enforce_gpt and cxt.label.name == 'dos': raise OgError(f'Windows EFI partition requires GPT partition scheme, but /dev/{disk} has DOS partition scheme') logging.info('Searching EFI partition...') |