diff options
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: |