summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-01-17 21:30:42 +0000
committerErik Troan <ewt@redhat.com>2001-01-17 21:30:42 +0000
commitada2903ab9b6c1957b52ede7239028d40551e5ee (patch)
treee885082314578f9d99de2e0b338d2fc473d80e27 /lilo.py
parenta370c5d2b7575514c6bfe61283a09ec0a9dfb8de (diff)
downloadanaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.tar.gz
anaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.tar.xz
anaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.zip
added needsEnterpriseKernel()
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/lilo.py b/lilo.py
index cb2788af0..1fbe507b9 100644
--- a/lilo.py
+++ b/lilo.py
@@ -4,6 +4,20 @@ import isys
import iutil
import rpm
+def needsEnterpriseKernel():
+ rc = 0
+
+ f = open("/proc/e820info", "r")
+ for l in f.readlines():
+ l = string.split(l)
+ if l[3] == '(reserved)': continue
+
+ regionEnd = (string.atol(l[0], 16) - 1) + string.atol(l[2], 16)
+ if regionEnd > 0xffffffffL:
+ rc = 1
+
+ return rc
+
class LiloConfigFile:
def __repr__ (self, tab = 0):
s = ""
@@ -336,6 +350,12 @@ class LiloConfiguration:
mainLabelUsed = 0
+ if (needsEnterpriseKernel() and hdList.has_key('kernel-enterprise') and
+ hdList['kernel-enterprise'].selected):
+ mainLabelUsed = 1
+ kernelList.append((main,
+ hdList['kernel-enterprise'], "enterprise"))
+
if (smpInstalled):
thisLabel = main
if mainLabelUsed: