summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-12-27 20:25:52 +0000
committerErik Troan <ewt@redhat.com>1999-12-27 20:25:52 +0000
commit40a7ac8a2d293dae57751cc7074372b786287425 (patch)
tree23f2020ca1c56bff720d3ee225d93b5d3a7bd0a5 /fstab.py
parent92660a36c7def307bb06319dcad468ba17199212 (diff)
downloadanaconda-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.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/fstab.py b/fstab.py
index a780b5b70..18fafb835 100644
--- a/fstab.py
+++ b/fstab.py
@@ -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 = {}