Skip to content

Commit

Permalink
Merge pull request #1288 from vojtechtrefny/main_ignore-missing-parte…
Browse files Browse the repository at this point in the history
…d-disk

Ignore partitions on disks without parted disk
  • Loading branch information
vojtechtrefny committed Oct 1, 2024
2 parents f2d5663 + 02e2be8 commit 14f04c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/populator/helpers/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def run(self):
disk.format = get_format("disklabel", exists=True, device=disk.path)
disk.original_format = copy.deepcopy(disk.format)

if disk.format.parted_disk is None:
log.error("ignoring partition %s on %s: parted disk not found", name, disk.name)
return

try:
device = PartitionDevice(name, sysfs_path=sysfs_path,
uuid=udev.device_get_partition_uuid(self.data),
Expand Down

0 comments on commit 14f04c2

Please sign in to comment.