for dev in filter(lambda d: d.type != parted.DEVICE_DM, parted.getAllDevices()):
- disk = parted.Disk(dev)
+ try:
+ disk = parted.Disk(dev)
+ except _ped.DiskLabelException:
+ continue
for part in disk.partitions:
lst.add("%s %s" % (part.path, int(part.getSize())))
--
1.7.0.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list