summaryrefslogtreecommitdiffstats
path: root/raid.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-12-29 15:59:47 +0000
committerMatt Wilson <msw@redhat.com>1999-12-29 15:59:47 +0000
commit87a1d45e2ce6fc489ea621735f00dbf12c1a2b90 (patch)
treee2a6f9d4694e84c728c9e8317a69ad23a53beed5 /raid.py
parente44eb12840c9a86aeb804f14c09490f57bb607a9 (diff)
downloadanaconda-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.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/raid.py b/raid.py
index 98c90e0a3..a74bc6fde 100644
--- a/raid.py
+++ b/raid.py
@@ -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: