summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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],