diff options
author | David Lehman <dlehman@redhat.com> | 2009-08-27 18:04:19 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-08-28 10:29:43 -0500 |
commit | 04f60f95e85ede99ae53f8309aaa368946425725 (patch) | |
tree | cffbce3463d4e81749387a4b77f3e8d188162962 /storage | |
parent | 915675d8689ea2509369a0012b05179771719fc4 (diff) | |
download | anaconda-04f60f95e85ede99ae53f8309aaa368946425725.tar.gz anaconda-04f60f95e85ede99ae53f8309aaa368946425725.tar.xz anaconda-04f60f95e85ede99ae53f8309aaa368946425725.zip |
Ignore partitions belonging to disks we've reinitialized.
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), |