diff options
author | Erik Troan <ewt@redhat.com> | 2000-08-16 17:11:48 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-08-16 17:11:48 +0000 |
commit | bc4b28dcd7f7e08695cd8bc090f2eb0be6daa649 (patch) | |
tree | 8eeef0d44e42cfa4041fb5207d17780cd28d7035 /lilo.py | |
parent | 38d1d0c9d9a505929b35d6f43778e758aa8edea0 (diff) | |
download | anaconda-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.py | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -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], |