diff options
author | Erik Troan <ewt@redhat.com> | 1999-12-27 20:25:52 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-12-27 20:25:52 +0000 |
commit | 40a7ac8a2d293dae57751cc7074372b786287425 (patch) | |
tree | 23f2020ca1c56bff720d3ee225d93b5d3a7bd0a5 /todo.py | |
parent | 92660a36c7def307bb06319dcad468ba17199212 (diff) | |
download | anaconda-40a7ac8a2d293dae57751cc7074372b786287425.tar.gz anaconda-40a7ac8a2d293dae57751cc7074372b786287425.tar.xz anaconda-40a7ac8a2d293dae57751cc7074372b786287425.zip |
boot/root on raid should work now
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 33 |
1 files changed, 14 insertions, 19 deletions
@@ -376,24 +376,13 @@ class ToDo: def setTimezoneInfo(self, timezone, asUtc = 0, asArc = 0): self.timezone = (timezone, asUtc, asArc) - def getLiloOptions(self): - mountPoints = {} - for (mntpoint, device, fsystem, doFormat, size) in \ - self.fstab.mountList(): - mountPoints[mntpoint] = device - - if mountPoints.has_key ('/boot'): - bootpart = mountPoints['/boot'] - else: - bootpart = mountPoints['/'] - i = len (bootpart) - 1 - while i < 0 and bootpart[i] in digits: - i = i - 1 - drives = self.drives.available().keys() - drives.sort(isys.compareDrives) - boothd = drives[0] + def allowLiloLocationConfig(self): + bootDevice = self.fstab.getBootDevice() + if bootDevice[0:2] == "md": + self.setLiloLocation(("raid", bootDevice)) + return None - return (bootpart, boothd) + return 1 def setLiloImages(self, images): self.liloImages = images @@ -410,6 +399,10 @@ class ToDo: self.fstab.mountList(): mountsByDev[device] = mntpoint + for (mntpoint, device, fstype, raidType, start, size, makeup) in raid: + mountsByDev[device] = mntpoint + drives.append(device, "", 2, 0, 0) + oldImages = {} for dev in self.liloImages.keys(): oldImages[dev] = self.liloImages[dev] @@ -417,7 +410,7 @@ class ToDo: self.liloImages = {} foundDos = 0 for (dev, devName, type, start, size) in drives: - # ext2 partitions get listed if + # ext2 and raid partitions get listed if # 1) they're / # 2) they're not mounted @@ -559,7 +552,9 @@ class ToDo: os.rename(self.instPath + '/etc/lilo.conf', self.instPath + '/etc/lilo.conf.rpmsave') - (bootpart, boothd) = self.getLiloOptions() + bootpart = self.fstab.getBootDevice() + boothd = self.fstab.getMbrDevice() + if (type((1,)) == type(bootpart)): (kind, self.liloDevice) = bootpart elif (self.liloDevice == "mbr"): |