summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-08-23 17:48:23 +0000
committerJeremy Katz <katzj@redhat.com>2006-08-23 17:48:23 +0000
commit5c4a7d4848609f2b387c727bad5a32e823130f77 (patch)
tree7478381f57d9a998b71eaf88264a493628957c1d /iutil.py
parent362dfe6f8a13b7002f91981e182123982b2c4dea (diff)
downloadanaconda-5c4a7d4848609f2b387c727bad5a32e823130f77.tar.gz
anaconda-5c4a7d4848609f2b387c727bad5a32e823130f77.tar.xz
anaconda-5c4a7d4848609f2b387c727bad5a32e823130f77.zip
2006-08-23 Jeremy Katz <katzj@redhat.com>
* iutil.py (cpuFeatureFlags): Add a method to get cpu feature flags, remove no longer used hasNX
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/iutil.py b/iutil.py
index 77138c9a1..a53f9a874 100644
--- a/iutil.py
+++ b/iutil.py
@@ -366,9 +366,9 @@ def isMactel():
mactel = False
return mactel
-def hasNX():
- """Convenience function to see if a machine supports the nx bit. We want
- to install an smp kernel if NX is present since NX requires PAE (#173245)"""
+def cpuFeatureFlags():
+ """Convenience function to get CPU feature flags from /proc/cpuinfo."""
+
if rhpl.getArch() not in ("i386", "x86_64"):
return False
f = open("/proc/cpuinfo", "r")
@@ -382,10 +382,9 @@ def hasNX():
flags = line[:-1].split(":", 1)[1]
# and split them
flst = flags.split(" ")
- if "nx" in flst:
- return True
- return False
-
+ return flst
+
+ return []
def writeRpmPlatform(root="/"):
import rhpl.arch