summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-07-06 15:36:55 +0000
committerPeter Jones <pjones@redhat.com>2007-07-06 15:36:55 +0000
commit06b8026a639d228272b4da7e804e88dc9cd0c56c (patch)
treee64edbd3a3f5bd3a3eae08d6cfb203b9d25ea9b7 /isys
parent943e1178ca5aa821696693af4f561d322cd30efe (diff)
downloadanaconda-06b8026a639d228272b4da7e804e88dc9cd0c56c.tar.gz
anaconda-06b8026a639d228272b4da7e804e88dc9cd0c56c.tar.xz
anaconda-06b8026a639d228272b4da7e804e88dc9cd0c56c.zip
- install the PAE kernel when applicable (#207573).
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 6293f497a..6e10b7ed7 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -1039,6 +1039,35 @@ def netmask2prefix (netmask):
return prefix
+isPAE = None
+def isPaeAvailable():
+ global isPAE
+ if isPAE is not None:
+ return isPAE
+
+ isPAE = False
+ if rhpl.getArch() not in ("i386", "x86_64"):
+ return isPAE
+
+ try:
+ f = open("/proc/iomem", "r")
+ lines = f.readlines()
+ for line in lines:
+ if line[0].isspace():
+ continue
+ start = line.split(' ')[0].split('-')[0]
+ start = long(start, 16)
+
+ if start > 0x100000000L:
+ isPAE = True
+ break
+
+ f.close()
+ except:
+ pass
+
+ return isPAE
+
auditDaemon = _isys.auditdaemon
handleSegv = _isys.handleSegv