summaryrefslogtreecommitdiffstats
path: root/raid.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-14 02:43:11 +0000
committerMatt Wilson <msw@redhat.com>2001-02-14 02:43:11 +0000
commit2037b8a5a458189a35165ba7ec1ca30fa6cedc65 (patch)
tree53752eb031884b110679ed0e13ea3c1e1e9e43dc /raid.py
parent0e75e0b555876b94ff8e6505d837d52b8ca49807 (diff)
downloadanaconda-2037b8a5a458189a35165ba7ec1ca30fa6cedc65.tar.gz
anaconda-2037b8a5a458189a35165ba7ec1ca30fa6cedc65.tar.xz
anaconda-2037b8a5a458189a35165ba7ec1ca30fa6cedc65.zip
just skip partitions with bad magic
Diffstat (limited to 'raid.py')
-rw-r--r--raid.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/raid.py b/raid.py
index fb61073d8..ba4e6e744 100644
--- a/raid.py
+++ b/raid.py
@@ -22,8 +22,12 @@ def scanForRaid(drives):
dev = "%s%d" % (d, i + 1)
- (major, minor, raidSet, level, nrDisks, totalDisks, mdMinor) = \
- isys.raidsb(dev)
+ try:
+ (major, minor, raidSet, level, nrDisks, totalDisks, mdMinor) =\
+ isys.raidsb(dev)
+ except ValueError:
+ # bad magic, this can't be part of our raid set
+ continue
if raidSets.has_key(raidSet):
(knownLevel, knownDisks, knownMinor, knownDevices) = \