summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-16 17:11:48 +0000
committerErik Troan <ewt@redhat.com>2000-08-16 17:11:48 +0000
commitbc4b28dcd7f7e08695cd8bc090f2eb0be6daa649 (patch)
tree8eeef0d44e42cfa4041fb5207d17780cd28d7035 /lilo.py
parent38d1d0c9d9a505929b35d6f43778e758aa8edea0 (diff)
downloadanaconda-bc4b28dcd7f7e08695cd8bc090f2eb0be6daa649.tar.gz
anaconda-bc4b28dcd7f7e08695cd8bc090f2eb0be6daa649.tar.xz
anaconda-bc4b28dcd7f7e08695cd8bc090f2eb0be6daa649.zip
better enterprise handling should let dos be the default again
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/lilo.py b/lilo.py
index 3408f74ae..a4de4d2dc 100644
--- a/lilo.py
+++ b/lilo.py
@@ -298,22 +298,28 @@ class LiloConfiguration:
elif label:
otherList.append (label, "/dev/" + drive)
- upKernelLabel = main
- defaultKernel = main
+ lilo.addEntry("default", self.default)
+
+ mainLabelUsed = 0
if (isys.smpAvailable() and hdList.has_key('kernel-enterprise') and
hdList['kernel-enterprise'].selected):
- kernelList.append(('linux-ent',
+ mainLabelUsed = 1
+ kernelList.append((main,
hdList['kernel-enterprise'], "enterprise"))
- upKernelLabel = main + "-up"
- defaultKernel = 'linux-ent'
if (smpInstalled):
- kernelList.append((main, hdList['kernel-smp'], "smp"))
- upKernelLabel = main + "-up"
+ thisLabel = main
+ if mainLabelUsed:
+ thisLabel = thisLabel + '-smp'
+ mainLabelUsed = 1
+
+ kernelList.append((thisLabel, hdList['kernel-smp'], "smp"))
- kernelList.append((upKernelLabel, hdList['kernel'], ""))
+ thisLabel = main
+ if mainLabelUsed:
+ thisLabel = thisLabel + '-smp'
- lilo.addEntry("default", defaultKernel)
+ kernelList.append((thisLabel, hdList['kernel'], ""))
for (label, kernel, tag) in kernelList:
kernelTag = "-%s-%s%s" % (kernel[rpm.RPMTAG_VERSION],