summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-01-23 21:01:32 +0000
committerMike Fulbright <msf@redhat.com>2001-01-23 21:01:32 +0000
commite08ff592837bfbea5f94a29a0f0038f438267708 (patch)
tree68d0542cb8505f443e0ea437f78eded48a44a0dc /fstab.py
parent1aae45d8ce07c079881c8815b657762ee216dbd8 (diff)
downloadanaconda-e08ff592837bfbea5f94a29a0f0038f438267708.tar.gz
anaconda-e08ff592837bfbea5f94a29a0f0038f438267708.tar.xz
anaconda-e08ff592837bfbea5f94a29a0f0038f438267708.zip
fixed so we just ignore RAID booting when doing maximum cylinder test, also fixed some problems in rescue mode
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/fstab.py b/fstab.py
index 8d878f78f..45bf62180 100644
--- a/fstab.py
+++ b/fstab.py
@@ -168,7 +168,12 @@ class Fstab:
bootpart = self.getBootDevice()
boothd = self.getMbrDevice()
- maxcyl = None
+ # for now just assume this will work on RAID systems, not simple to
+ # test at all
+ if bootpart[0:2] == "md":
+ return 0
+
+ maxcyl = 0
try:
bootgeom = isys.getGeometry(boothd)
@@ -204,14 +209,21 @@ class Fstab:
def getBootPartitionMaxCylFromDesired(self):
bootpart = self.getBootDevice()
boothd = self.getMbrDevice()
+
+ # for now just assume this will work on RAID systems, not simple to
+ # test at all
+ if bootpart[0:2] == "md":
+ return 0
+
+
(drives, raid) = self.partitionList()
for (dev, devName, type, start, size, maxcyl, preexist) in drives:
if dev == bootpart:
-# log ("maxcyl of %s is %d" % (dev, maxcyl))
+ log ("maxcyl of %s is %s" % (dev, maxcyl))
return maxcyl
- return None
+ return 0
def getMbrDevice(self):
return self.driveList()[0]