summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hamzy <hamzy@us.ibm.com>2011-12-20 17:42:08 -0600
committerDavid Lehman <dlehman@redhat.com>2012-01-26 13:11:59 -0600
commit5ebf5532dfe61ec847022c2b5b46a3847f32cac7 (patch)
tree54f0be8829e4a0992fd0dd740c7eeb134e58feba
parent61948858541fece70e843e9fc055248e9b4df3b6 (diff)
downloadanaconda-5ebf5532dfe61ec847022c2b5b46a3847f32cac7.tar.gz
anaconda-5ebf5532dfe61ec847022c2b5b46a3847f32cac7.tar.xz
anaconda-5ebf5532dfe61ec847022c2b5b46a3847f32cac7.zip
Ignore dm devs when scanning for mpath members (#761278)
The initial loop through udev's block device list is mostly to identify and assemble mpaths. Already-active mpaths in that list cause problems because of the special way mpaths are handled. However, mpath member devices are never device-mapper devices so we can safely skip over them in this mpath-specific loop.
-rw-r--r--pyanaconda/storage/devicetree.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 5c789b0c1..9a903eb9d 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1935,6 +1935,12 @@ class DeviceTree(object):
[d['name'] for d in self.topology.devices_iter()])
old_devices = {}
for dev in self.topology.devices_iter():
+ # avoid the problems caused by encountering multipath devices in
+ # this loop by simply skipping all dm devices here
+ if dev['name'].startswith("dm-"):
+ log.debug("Skipping a device mapper drive (%s) for now" % dev['name'])
+ continue
+
old_devices[dev['name']] = dev
self.addUdevDevice(dev)
if progressWindow: