summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-12-07 13:33:23 -0500
committerBill Nottingham <notting@redhat.com>2007-12-07 13:33:23 -0500
commit29769be5a33e3d370b5239de2bbe989702131d83 (patch)
tree53d74e31fc328d1be9840937365f8d10509d1fc2 /exception.py
parentf221253920829abb60966450ef416ca70762bf18 (diff)
downloadanaconda-29769be5a33e3d370b5239de2bbe989702131d83.tar.gz
anaconda-29769be5a33e3d370b5239de2bbe989702131d83.tar.xz
anaconda-29769be5a33e3d370b5239de2bbe989702131d83.zip
Don't create the exception device - just use the device as passed in.
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/exception.py b/exception.py
index 4ebdfb288..d5f4bbc3b 100644
--- a/exception.py
+++ b/exception.py
@@ -270,14 +270,8 @@ def copyExceptionToDisk(anaconda, device):
anaconda.intf.__del__ ()
return True
- file = "/tmp/exndev"
try:
- isys.makeDevInode(device, file)
- except SystemError:
- pass
-
- try:
- fd = os.open(file, os.O_RDONLY)
+ fd = os.open(device, os.O_RDONLY)
except:
return False
@@ -290,11 +284,11 @@ def copyExceptionToDisk(anaconda, device):
if os.access("/sbin/mkdosfs", os.X_OK):
cmd = "/sbin/mkdosfs"
- iutil.execWithRedirect (cmd, [file], stdout = '/dev/tty5',
+ iutil.execWithRedirect (cmd, [device], stdout = '/dev/tty5',
stderr = '/dev/tty5')
try:
- isys.mount(file, "/tmp/crash", fstype = "vfat")
+ isys.mount(device, "/tmp/crash", fstype = "vfat")
except SystemError:
return False