diff options
author | Mike Fulbright <msf@redhat.com> | 2000-12-05 16:01:46 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-12-05 16:01:46 +0000 |
commit | 566587df25d7efaa2473757ea909974c2316395a (patch) | |
tree | 74d96b83e11fad3753f01714e45963f026c286df /todo.py | |
parent | 2aaddb453a10475b3bdec72f63f9d60fedc43d82 (diff) | |
download | anaconda-566587df25d7efaa2473757ea909974c2316395a.tar.gz anaconda-566587df25d7efaa2473757ea909974c2316395a.tar.xz anaconda-566587df25d7efaa2473757ea909974c2316395a.zip |
be smarter about attempting to unmount usb
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1713,9 +1713,11 @@ class ToDo: pass log("Mounting /proc/bus/usb in install path") + unmountUSB = 0 try: isys.mount('/usbdevfs', self.instPath+'/proc/bus/usb', 'usbdevfs') log("Mount of USB succeeded") + unmountUSB = 1 except: log("Mount of USB failed") pass @@ -1735,8 +1737,8 @@ class ToDo: xmouse.reopen() except RuntimeError: pass - - isys.umount(self.instPath + '/proc/bus/usb', removeDir = 0) + if unmountUSB: + isys.umount(self.instPath + '/proc/bus/usb', removeDir = 0) w.set(4); |