diff options
author | Matt Wilson <msw@redhat.com> | 2001-08-09 19:36:32 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-08-09 19:36:32 +0000 |
commit | 1f81ca85e7d164f9006b1a8728a63498a73c7636 (patch) | |
tree | ded38bcae7cf95b771e311cfb0cc8fa698b631e4 /raid.py | |
parent | 8de857f3a5e11140f792bc8a3e017f136edfb49c (diff) | |
download | anaconda-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.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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) |