From 507f34884f7bf9bfd8e95d379c62f1c19e4cef03 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Thu, 22 Dec 2011 14:43:54 -0600 Subject: [PATCH 7/9] Don't crash when broken md devices are present. --- pyanaconda/storage/devicetree.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py index 1e25dd1..9f33868 100644 --- a/pyanaconda/storage/devicetree.py +++ b/pyanaconda/storage/devicetree.py @@ -752,8 +752,12 @@ 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: - raise DeviceTreeError("MD RAID device %s not in devicetree after " - "scanning all slaves" % name) + log.error("failed to scan md array %s" % name) + try: + devicelibs.mdraid.mddeactivate("/dev/" + name) + except MDRaidError: + pass + return device def addUdevPartitionDevice(self, info, disk=None): -- 1.7.8