From bc4b28dcd7f7e08695cd8bc090f2eb0be6daa649 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Wed, 16 Aug 2000 17:11:48 +0000 Subject: better enterprise handling should let dos be the default again --- lilo.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'lilo.py') 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], -- cgit