FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 02-23-2012, 10:02 PM
David Lehman
 
Default Don't crash when broken md devices are present. (#731177)

---
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 25331c2..b865302 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -754,8 +754,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:
+ log.error("failed to stop broken md array %s" % name)
+
return device

def addUdevPartitionDevice(self, info, disk=None):
--
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:22 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org