diff options
author | Mike Fulbright <msf@redhat.com> | 2001-01-04 22:00:05 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-01-04 22:00:05 +0000 |
commit | 9164d01abbd016512f60be0b37f7c74536952edf (patch) | |
tree | f53e02be61a7a4cd5ef82ad3200b8b12b2c40c8c /lilo.py | |
parent | 9a9b769afcc53aad15c067ff3438a83c6f98c1af (diff) | |
download | anaconda-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.py | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -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) |