diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-20 19:14:48 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-20 19:14:48 +0000 |
commit | d14a544dab4b722b17f4fad4ddf82f2861132aaf (patch) | |
tree | de2a81bc3e40887c18e6799c64c906a50c0cd898 /lilo.py | |
parent | 72d34f673b8d9db9ab818c2c56b40f7ff5924451 (diff) | |
download | anaconda-d14a544dab4b722b17f4fad4ddf82f2861132aaf.tar.gz anaconda-d14a544dab4b722b17f4fad4ddf82f2861132aaf.tar.xz anaconda-d14a544dab4b722b17f4fad4ddf82f2861132aaf.zip |
use lba32 unconditionally if boot partition extends beyond 1024 cylinders
Diffstat (limited to 'lilo.py')
-rw-r--r-- | lilo.py | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -290,12 +290,13 @@ class LiloConfiguration: boothd = fstab.getMbrDevice() useLBA32 = 0 - if self.edd: + + maxcyl = fstab.getBootPartitionMaxCylFromDrive() + if maxcyl > 1024: from log import log - maxcyl = fstab.getBootPartitionMaxCylFromDrive() - if maxcyl > 1024: - log("Maximum cylinder is %s, using lba32" % maxcyl) - useLBA32 = 1 + log("Maximum cylinder is %s, using lba32" % maxcyl) + useLBA32 = 1 + if (self.liloDevice == "mbr"): liloTarget = boothd @@ -321,7 +322,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 and useLBA32: + if useLBA32: lilo.addEntry("lba32", replace = 0) if lilo.testEntry("linear"): lilo.delEntry("linear") |