summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-01-04 22:00:05 +0000
committerMike Fulbright <msf@redhat.com>2001-01-04 22:00:05 +0000
commit9164d01abbd016512f60be0b37f7c74536952edf (patch)
treef53e02be61a7a4cd5ef82ad3200b8b12b2c40c8c /lilo.py
parent9a9b769afcc53aad15c067ff3438a83c6f98c1af (diff)
downloadanaconda-9164d01abbd016512f60be0b37f7c74536952edf.tar.gz
anaconda-9164d01abbd016512f60be0b37f7c74536952edf.tar.xz
anaconda-9164d01abbd016512f60be0b37f7c74536952edf.zip
fix for bug 23304 - didnt merge linear/lba32 cleanly on upgrades
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/lilo.py b/lilo.py
index 9d4e13044..f436a73fe 100644
--- a/lilo.py
+++ b/lilo.py
@@ -36,6 +36,12 @@ class LiloConfigFile:
def getEntry(self, item):
return self.items[item]
+ def testEntry(self, item):
+ if self.items.has_key(item):
+ return 1
+ else:
+ return 0
+
def getImage(self, label):
for config in self.images:
if config.getEntry('label') == label:
@@ -273,10 +279,13 @@ class LiloConfiguration:
lilo.addEntry("timeout", "50", replace = 0)
lilo.addEntry("message", "/boot/message", replace = 0)
# XXX edd overrides linear, lba32/linear are mutually exclusive
- if self.edd:
- lilo.addEntry("lba32", replace = 0)
- elif self.liloLinear:
- lilo.addEntry("linear", replace = 0)
+ #
+ # 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:
+ lilo.addEntry("lba32", replace = 0)
+ elif self.liloLinear:
+ lilo.addEntry("linear", replace = 0)
smpInstalled = (hdList.has_key('kernel-smp') and
hdList['kernel-smp'].selected)