diff options
author | Matt Wilson <msw@redhat.com> | 1999-12-29 15:59:47 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-12-29 15:59:47 +0000 |
commit | 87a1d45e2ce6fc489ea621735f00dbf12c1a2b90 (patch) | |
tree | e2a6f9d4694e84c728c9e8317a69ad23a53beed5 /raid.py | |
parent | e44eb12840c9a86aeb804f14c09490f57bb607a9 (diff) | |
download | anaconda-87a1d45e2ce6fc489ea621735f00dbf12c1a2b90.tar.gz anaconda-87a1d45e2ce6fc489ea621735f00dbf12c1a2b90.tar.xz anaconda-87a1d45e2ce6fc489ea621735f00dbf12c1a2b90.zip |
various fixes for raid upgrades (which seem to work now)
Diffstat (limited to 'raid.py')
-rw-r--r-- | raid.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,7 +7,11 @@ import os def scanForRaid(drives): for d in drives: isys.makeDevInode(d, "/tmp/" + d) - parts = _balkan.readTable('/tmp/' + d) + try: + parts = _balkan.readTable('/tmp/' + d) + except SystemError, msg: + parts = [] + os.remove("/tmp/" + d) raidSets = {} raidDevices = {} @@ -50,11 +54,11 @@ def scanForRaid(drives): def startAllRaid(driveList): mdList = [] - for (mdDevice, deviceList) in scanForRaid(['sda']): + for (mdDevice, deviceList) in scanForRaid(driveList): devName = "md%d" % (mdDevice,) isys.raidstart(devName, deviceList[0]) mdList.append(devName) - return mdList + return mdList def stopAllRaid(mdList): for dev in mdList: |