diff options
author | Bill Nottingham <notting@redhat.com> | 2000-08-18 23:31:02 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-08-18 23:31:02 +0000 |
commit | 8effd671529a5e02147a0d7582a7dd0b001e0eac (patch) | |
tree | 9723a85539abe9e273e15e28e6b575368c331620 /exception.py | |
parent | ebed6a996915582e08e0329ea71333ef9d72ab28 (diff) | |
download | anaconda-8effd671529a5e02147a0d7582a7dd0b001e0eac.tar.gz anaconda-8effd671529a5e02147a0d7582a7dd0b001e0eac.tar.xz anaconda-8effd671529a5e02147a0d7582a7dd0b001e0eac.zip |
don't run mkdosfs on exceptions on ia64
Diffstat (limited to 'exception.py')
-rw-r--r-- | exception.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/exception.py b/exception.py index fe6a1a786..c9d69e5f2 100644 --- a/exception.py +++ b/exception.py @@ -40,14 +40,19 @@ def handleException(todo, (type, value, tb)): os.close(fd) - args = [ 'mkdosfs', '/tmp/floppy' ] + if iutil.getArch() != "ia64": + args = [ 'mkdosfs', '/tmp/floppy' ] - cmd = "/usr/sbin/mkdosfs" - if os.access("/sbin/mkdosfs", os.X_OK): - cmd = "/sbin/mkdosfs" + + cmd = "/usr/sbin/mkdosfs" + + if os.access("/sbin/mkdosfs", os.X_OK): + cmd = "/sbin/mkdosfs" - iutil.execWithRedirect (cmd, args, + + iutil.execWithRedirect (cmd, args, stdout = '/dev/tty5', stderr = '/dev/tty5') + try: isys.mount(device, "/tmp/crash", fstype = "vfat") except SystemError: |