summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-17 13:49:47 -0400
committerChris Lumens <clumens@redhat.com>2009-03-17 14:17:20 -0400
commitb2b53f1ef3d0fe7526ffe723201153f421c7360a (patch)
tree1625f0d6eb56ced580f5873bf99b2c75921968a6
parent164e80fd66563a410579df3d1a521e7557621a71 (diff)
downloadanaconda-b2b53f1ef3d0fe7526ffe723201153f421c7360a.tar.gz
anaconda-b2b53f1ef3d0fe7526ffe723201153f421c7360a.tar.xz
anaconda-b2b53f1ef3d0fe7526ffe723201153f421c7360a.zip
Look at CPU flags instead of /proc/iomem to determine PAE-ness (#484941).
-rwxr-xr-xisys/isys.py22
1 files changed, 7 insertions, 15 deletions
diff --git a/isys/isys.py b/isys/isys.py
index ee1866686..d2168dbf1 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -655,22 +655,14 @@ def isPaeAvailable():
if not iutil.isX86():
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 = open("/proc/cpuinfo", "r")
+ lines = f.readlines()
+ f.close()
- f.close()
- except:
- pass
+ for line in lines:
+ if line.startswith("flags") and line.find("pae") != -1:
+ isPAE = True
+ break
return isPAE