diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-04-01 14:23:06 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-04-01 14:28:14 +0200 |
commit | 471294182890a77a8e334acbe752ad44fb9f07b8 (patch) | |
tree | c14ae1fd35db59b92c07064e943b22c4442791f3 /src/utils | |
parent | 1aba9d09236233e19d6145992c28e94afbd8758b (diff) |
utils: refine log when booting windows UEFI from DOS partition
Refine 97647c32aa2c utils: add enforce_gpt argument to get_efi_partition()
to provide more explicit error when trying to boot Windows UEFI from DOS
partition.
Diffstat (limited to 'src/utils')
-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 99cf36f..323994c 100644 --- a/src/utils/disk.py +++ b/src/utils/disk.py @@ -61,7 +61,7 @@ def get_efi_partition(disknum, enforce_gpt): cxt = fdisk.Context(f'/dev/{disk}') if enforce_gpt and cxt.label == fdisk.FDISK_DISKLABEL_DOS: - raise RuntimeError(f'Disk has DOS partition scheme, cannot find ESP at /dev/{disk}') + raise RuntimeError(f'Windows EFI System requires GPT partition scheme, but /dev/{disk} has DOS partition scheme') for pa in cxt.partitions: logging.info(f'Checking partition "{pa.type.name}"...') |