diff options
author | Matt Wilson <msw@redhat.com> | 2001-02-14 02:43:11 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-02-14 02:43:11 +0000 |
commit | 2037b8a5a458189a35165ba7ec1ca30fa6cedc65 (patch) | |
tree | 53752eb031884b110679ed0e13ea3c1e1e9e43dc /raid.py | |
parent | 0e75e0b555876b94ff8e6505d837d52b8ca49807 (diff) | |
download | anaconda-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.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) = \ |