summaryrefslogtreecommitdiffstats
path: root/raid.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-08-09 19:36:32 +0000
committerMatt Wilson <msw@redhat.com>2001-08-09 19:36:32 +0000
commit1f81ca85e7d164f9006b1a8728a63498a73c7636 (patch)
treeded38bcae7cf95b771e311cfb0cc8fa698b631e4 /raid.py
parent8de857f3a5e11140f792bc8a3e017f136edfb49c (diff)
downloadanaconda-1f81ca85e7d164f9006b1a8728a63498a73c7636.tar.gz
anaconda-1f81ca85e7d164f9006b1a8728a63498a73c7636.tar.xz
anaconda-1f81ca85e7d164f9006b1a8728a63498a73c7636.zip
Reconstrict an existing RAIDDevice for those devices mentioned in the fstab. This
is so we can get the SW RAID member that is bootable when we go to install GRUB. (#51213)
Diffstat (limited to 'raid.py')
-rw-r--r--raid.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/raid.py b/raid.py
index 555b99eae..1b47b04ac 100644
--- a/raid.py
+++ b/raid.py
@@ -82,18 +82,19 @@ def scanForRaid(drives):
"This raid device will not be started.", mdMinor,
len(devices), totalDisks)
continue
- raidList.append((mdMinor, devices))
+ raidList.append((mdMinor, devices, level, totalDisks))
return raidList
def startAllRaid(driveList):
- mdList = []
- for (mdDevice, deviceList) in scanForRaid(driveList):
+ rc = []
+ mdList = scanForRaid(driveList)
+ for mdDevice, deviceList, level, numActive in mdList:
devName = "md%d" % (mdDevice,)
isys.raidstart(devName, deviceList[0])
- mdList.append(devName)
- return mdList
+ rc.append((devName, deviceList, level, numActive))
+ return rc
def stopAllRaid(mdList):
- for dev in mdList:
+ for dev, devices, level, numActive in mdList:
isys.raidstop(dev)