diff options
author | Mike Fulbright <msf@redhat.com> | 2001-01-23 21:01:32 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-01-23 21:01:32 +0000 |
commit | e08ff592837bfbea5f94a29a0f0038f438267708 (patch) | |
tree | 68d0542cb8505f443e0ea437f78eded48a44a0dc /fstab.py | |
parent | 1aae45d8ce07c079881c8815b657762ee216dbd8 (diff) | |
download | anaconda-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.py | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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] |