summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-05-31 20:51:07 +0000
committerChris Lumens <clumens@redhat.com>2005-05-31 20:51:07 +0000
commit418be937353c1c86909801837e51c769c424141b (patch)
treeb1398dd84d67882838d6fba86c3ae487923c2aed /fsset.py
parenta2d71f54a98dd4348203c5666f065ad9ed748898 (diff)
downloadanaconda-418be937353c1c86909801837e51c769c424141b.tar.gz
anaconda-418be937353c1c86909801837e51c769c424141b.tar.xz
anaconda-418be937353c1c86909801837e51c769c424141b.zip
Revert to super-major behavior for volumes that aren't activated
either (#159079, #159182).
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 4ef57fe3b..ed4b340ac 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1936,7 +1936,11 @@ class RAIDDevice(Device):
levels = ["multipath", "hsm", "translucent", "linear", "raid0",
"raid1", "", "", "raid5", "raid5"]
- (dev, devices, level, numActive) = raid.lookup_raid_device (self.device)
+ # If we can't find the device for some reason, revert to old behavior.
+ try:
+ (dev, devices, level, numActive) = raid.lookup_raid_device (self.device)
+ except KeyError:
+ devices = []
# First loop over all the devices that make up the RAID trying to read
# the superblock off each. If we read a superblock, return a line that