diff options
author | Erik Troan <ewt@redhat.com> | 2001-01-17 21:30:42 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-01-17 21:30:42 +0000 |
commit | ada2903ab9b6c1957b52ede7239028d40551e5ee (patch) | |
tree | e885082314578f9d99de2e0b338d2fc473d80e27 /lilo.py | |
parent | a370c5d2b7575514c6bfe61283a09ec0a9dfb8de (diff) | |
download | anaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.tar.gz anaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.tar.xz anaconda-ada2903ab9b6c1957b52ede7239028d40551e5ee.zip |
added needsEnterpriseKernel()
Diffstat (limited to 'lilo.py')
-rw-r--r-- | lilo.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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: |