diff options
-rw-r--r-- | src/utils/grub.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/grub.py b/src/utils/grub.py index 4b403db..c254193 100644 --- a/src/utils/grub.py +++ b/src/utils/grub.py @@ -266,7 +266,10 @@ def _get_os_entries(esp_mountpoint): available_disks = get_disks() for disk_num, diskname in enumerate(available_disks, start=1): disk_device = f'/dev/{diskname}' - partitions_data = get_partition_data(device=disk_device) + try: + partitions_data = get_partition_data(device=disk_device) + except OgError as e: + continue for p in partitions_data: part_num = p.partno + 1 |