summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-08 18:07:26 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-08 18:07:26 +0000
commit1e08a3c77b28e9c3b884a1520d3359f62148599b (patch)
treebfeaa31fc6e70dac15f5457b27935acf1cebf787 /bootloader.py
parent9d0a6919a4acfc7fbf9b6d6a6c96648139335029 (diff)
downloadanaconda-1e08a3c77b28e9c3b884a1520d3359f62148599b.tar.gz
anaconda-1e08a3c77b28e9c3b884a1520d3359f62148599b.tar.xz
anaconda-1e08a3c77b28e9c3b884a1520d3359f62148599b.zip
hook edd detection for lilo back in (51096)
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py
index 90b30446b..940b5a44f 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -22,6 +22,7 @@ import whrandom
import language
import iutil
import string
+import edd
from flags import flags
from log import log
from constants import *
@@ -296,6 +297,7 @@ class bootloaderInfo:
self.forceLBA32 = 0
self.password = None
self.pure = None
+ self.above1024 = 0
class ia64BootloaderInfo(bootloaderInfo):
def writeLilo(self, instRoot, fsset, bl, langs, kernelList,
@@ -548,7 +550,7 @@ class x86BootloaderInfo(bootloaderInfo):
config.addEntry("message", message, replace = 0)
if not config.testEntry('lba32') and not config.testEntry('linear'):
- if self.forceLBA32:
+ if self.forceLBA32 or (bl.above1024 and edd.detect()):
config.addEntry("lba32", replace = 0)
elif self.useLinear:
config.addEntry("linear", replace = 0)
@@ -662,6 +664,15 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
bl.defaultDevice = len(choices)
bl.setDevice(choices[bl.defaultDevice][0])
+ bootDev = fsset.getEntryByMountPoint("/")
+ if not bootDev:
+ bootDev = fsset.getEntryByMountPoint("/boot")
+ part = partitioning.get_partition_by_name(diskSet.disks, bootDev.device.getDevice())
+ if part and partitioning.end_sector_to_cyl(part.geom.disk.dev,
+ part.geom.end) >= 1024:
+ bl.above1024 = 1
+
+
def writeBootloader(intf, instRoot, fsset, bl, langs, comps):
justConfigFile = not flags.setupFilesystems