diff options
author | Mike Fulbright <msf@redhat.com> | 2001-01-08 23:51:15 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-01-08 23:51:15 +0000 |
commit | 5691c18b5d559d6cdf695ca376385007e574387e (patch) | |
tree | 194f3bd17d191a24f04c47e7687ba97986b56a02 /lilo.py | |
parent | 6f670ec8ae8d1a246c66954100236c90e23ea96c (diff) | |
download | anaconda-5691c18b5d559d6cdf695ca376385007e574387e.tar.gz anaconda-5691c18b5d559d6cdf695ca376385007e574387e.tar.xz anaconda-5691c18b5d559d6cdf695ca376385007e574387e.zip |
Added support for LBA32 when we right out lilo.conf iff we need it because boot partition is over 1023 cyl. Also added warning if you put boot > 1023 cyl and we dont seem to be able to detect edd support on this system
Diffstat (limited to 'lilo.py')
-rw-r--r-- | lilo.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -272,6 +272,14 @@ class LiloConfiguration: bootpart = fstab.getBootDevice() boothd = fstab.getMbrDevice() + useLBA32 = 0 + if self.edd: + from log import log + maxcyl = fstab.getBootPartitionMaxCyl() + if maxcyl > 1023: + log("Using lba32") + useLBA32 = 1 + if (self.liloDevice == "mbr"): liloTarget = boothd elif (type(self.liloDevice) == type((1,)) and @@ -290,7 +298,7 @@ class LiloConfiguration: # # test to see if one of these already in lilo.conf, use if so if not lilo.testEntry('lba32') and not lilo.testEntry('linear'): - if self.edd: + if self.edd and useLBA32: lilo.addEntry("lba32", replace = 0) elif self.liloLinear: lilo.addEntry("linear", replace = 0) |