summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-07 20:00:40 +0000
committerErik Troan <ewt@redhat.com>2000-08-07 20:00:40 +0000
commit71ab74913402431160ed48e889d1cd165809bcf6 (patch)
tree2138ea69fafc4f3096c3f0d65aabad07fe23ee4d /lilo.py
parent4679c329ef59e903157162be40ac159756dd46c4 (diff)
downloadanaconda-71ab74913402431160ed48e889d1cd165809bcf6.tar.gz
anaconda-71ab74913402431160ed48e889d1cd165809bcf6.tar.xz
anaconda-71ab74913402431160ed48e889d1cd165809bcf6.zip
handle kernel-enterprise if it's selected
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/lilo.py b/lilo.py
index 524d5bc13..a88d0bfc2 100644
--- a/lilo.py
+++ b/lilo.py
@@ -298,14 +298,22 @@ class LiloConfiguration:
elif label:
otherList.append (label, "/dev/" + drive)
- lilo.addEntry("default", self.default)
-
- label = main
+ upKernelLabel = main
+ defaultKernel = main
+
+ if (hdList.has_key('kernel-enterprise') and
+ hdList['kernel-enterprise'].selected):
+ kernelList.append(('linux-ent',
+ hdList['kernel-enterprise'], "enterprise"))
+ upKernelLabel = main + "-up"
+ defaultKernel = 'linux-ent'
if (smpInstalled):
kernelList.append((main, hdList['kernel-smp'], "smp"))
- label = main + "-up"
+ upKernelLabel = main + "-up"
+
+ kernelList.append((upKernelLabel, hdList['kernel'], ""))
- kernelList.append((label, hdList['kernel'], ""))
+ lilo.addEntry("default", defaultKernel)
for (label, kernel, tag) in kernelList:
kernelTag = "-%s-%s%s" % (kernel[rpm.RPMTAG_VERSION],