From 29769be5a33e3d370b5239de2bbe989702131d83 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 7 Dec 2007 13:33:23 -0500 Subject: Don't create the exception device - just use the device as passed in. --- exception.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'exception.py') 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 -- cgit