summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-07 22:45:26 +0000
committerMatt Wilson <msw@redhat.com>1999-09-07 22:45:26 +0000
commit964b12982b2078ee53bfa45026125703a2a31b7d (patch)
tree58be92c6592d95ea315f9c4a63153a6081661f0c /iutil.py
parent0e6195f473604ee66f2df999e0432738319293e9 (diff)
downloadanaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.gz
anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.xz
anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.zip
fixes for alpha, fstab reading
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/iutil.py b/iutil.py
index 6abb76b5f..e34930bb4 100644
--- a/iutil.py
+++ b/iutil.py
@@ -1,6 +1,17 @@
import types, os, sys, isys, select
+def getArch ():
+ arch = os.uname ()[4]
+ if (len (arch) == 4 and arch[0] == 'i' and
+ arch[2:3] == "86"):
+ arch = "i386"
+
+ if arch == "sparc64":
+ arch = "sparc"
+
+ return arch
+
def getfd(filespec, readOnly = 0):
if type(filespec) == types.IntType:
return filespec