diff options
Diffstat (limited to 'storage')
-rw-r--r-- | storage/devicetree.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 90a078ea2..e56aa079f 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1100,6 +1100,12 @@ class DeviceTree(object): log.error("failure scanning device %s" % disk_name) return + # Check that the disk has partitions. If it does not, we must have + # reinitialized the disklabel. + if not getattr(disk.format, "partitions", None): + log.debug("ignoring partition %s" % name) + return + try: device = PartitionDevice(name, sysfsPath=sysfs_path, major=udev_device_get_major(info), |