summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-07-18 15:21:51 +0000
committerPeter Jones <pjones@redhat.com>2007-07-18 15:21:51 +0000
commit2d95cdea6433d617e3edb51a10157452aec2369c (patch)
tree57cad073f1a0617836aee566192a44d2e6503cdc /iutil.py
parent8df665208a56ce178629f09fd0782f2df22b319c (diff)
downloadanaconda-2d95cdea6433d617e3edb51a10157452aec2369c.tar.gz
anaconda-2d95cdea6433d617e3edb51a10157452aec2369c.tar.xz
anaconda-2d95cdea6433d617e3edb51a10157452aec2369c.zip
- add support for x86 machines with efi
- add support for gpt on x86
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index 4e31e528a..2e6a5ea7f 100644
--- a/iutil.py
+++ b/iutil.py
@@ -407,6 +407,20 @@ def isMactel():
mactel = False
return mactel
+efi = None
+def isEfi():
+ global efi
+ if efi is not None:
+ return efi
+
+ # XXX need to make sure efivars is loaded...
+ if not os.path.exists("/sys/firmware/efi"):
+ efi = False
+ else:
+ efi = True
+
+ return efi
+
def cpuFeatureFlags():
"""Convenience function to get CPU feature flags from /proc/cpuinfo."""