summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2008-03-04 15:33:41 -0500
committerPeter Jones <pjones@pjones2.localdomain>2008-03-04 15:33:41 -0500
commit0c16b5c977e1144dd230826f3665c313e33d01e2 (patch)
tree2ac681399dae556c5ef78ea7a64f369e01f3fc34 /iutil.py
parent18557aa8d499ff9eb7cfd194d7e5b812684bf8ab (diff)
downloadanaconda-0c16b5c977e1144dd230826f3665c313e33d01e2.tar.gz
anaconda-0c16b5c977e1144dd230826f3665c313e33d01e2.tar.xz
anaconda-0c16b5c977e1144dd230826f3665c313e33d01e2.zip
Rework isEfi() to be slightly more conservative.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/iutil.py b/iutil.py
index 748539489..cc9170bb9 100644
--- a/iutil.py
+++ b/iutil.py
@@ -443,11 +443,11 @@ def isEfi():
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
+ efi = False
+ if rhpl.getArch() in ("ia64", "i386", "x86_64"):
+ # XXX need to make sure efivars is loaded...
+ if os.path.exists("/sys/firmware/efi"):
+ efi = True
return efi