diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-07 22:45:26 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-07 22:45:26 +0000 |
commit | 964b12982b2078ee53bfa45026125703a2a31b7d (patch) | |
tree | 58be92c6592d95ea315f9c4a63153a6081661f0c /iutil.py | |
parent | 0e6195f473604ee66f2df999e0432738319293e9 (diff) | |
download | anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.gz anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.tar.xz anaconda-964b12982b2078ee53bfa45026125703a2a31b7d.zip |
fixes for alpha, fstab reading
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |