summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-18 23:31:02 +0000
committerBill Nottingham <notting@redhat.com>2000-08-18 23:31:02 +0000
commit8effd671529a5e02147a0d7582a7dd0b001e0eac (patch)
tree9723a85539abe9e273e15e28e6b575368c331620 /exception.py
parentebed6a996915582e08e0329ea71333ef9d72ab28 (diff)
downloadanaconda-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.py15
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: