summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-12-05 16:01:46 +0000
committerMike Fulbright <msf@redhat.com>2000-12-05 16:01:46 +0000
commit566587df25d7efaa2473757ea909974c2316395a (patch)
tree74d96b83e11fad3753f01714e45963f026c286df /todo.py
parent2aaddb453a10475b3bdec72f63f9d60fedc43d82 (diff)
downloadanaconda-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.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 8d4a61ffc..22e65028c 100644
--- a/todo.py
+++ b/todo.py
@@ -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);