[PATCH 1/3] Fallback to mdN if no name was found for incomplete md array. (#873224)
David Lehman
dlehman at redhat.com
Mon Dec 17 22:33:38 UTC 2012
---
pyanaconda/storage/devicetree.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index a082171..3743fd0 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -777,6 +777,9 @@ class DeviceTree(object):
# something must be wrong -- if all of the slaves we in
# the tree, this device should be as well
if device is None:
+ if name is None:
+ name = udev_device_get_name(info)
+
log.error("failed to scan md array %s" % name)
try:
devicelibs.mdraid.mddeactivate("/dev/" + name)
--
1.7.7.6
More information about the anaconda-patches
mailing list