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 /fstab.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 'fstab.py')
-rw-r--r-- | fstab.py | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -14,9 +14,6 @@ # we always store as much of the fstab within the disk druid structure # as we can -- Don't Duplicate Data. - #self.todo.setLiloLocation(("raid", liloBoot)) - #self.todo.instClass.addToSkipList("lilo") - import isys import iutil import os @@ -52,6 +49,23 @@ class Fstab: return None + def getMbrDevice(self): + return self.driveList()[0] + + def getBootDevice(self): + bootDevice = None + rootDevice = None + for (mntpoint, partition, fsystem, doFormat, size) in self.mountList(): + if mntpoint == '/': + rootDevice = partition + elif mntpoint == '/boot': + bootDevice = partition + + if not bootDevice: + bootDevice = rootDevice + + return bootDevice + def setDruid(self, druid, raid): self.ddruid = druid self.fsCache = {} |