diff options
author | Peter Jones <pjones@redhat.com> | 2007-07-18 15:21:51 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2007-07-18 15:21:51 +0000 |
commit | 2d95cdea6433d617e3edb51a10157452aec2369c (patch) | |
tree | 57cad073f1a0617836aee566192a44d2e6503cdc /iutil.py | |
parent | 8df665208a56ce178629f09fd0782f2df22b319c (diff) | |
download | anaconda-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.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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.""" |