summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-06-10 15:20:39 -0400
committerChris Lumens <clumens@redhat.com>2008-06-10 15:20:39 -0400
commit63a336fcd94afd4d72566e353bec8be0b5ef1526 (patch)
tree505fc888bac4566a0555aa282b047323e9e0ed76 /fsset.py
parente152488d779f41d0d3ae588e7f029ced2748e006 (diff)
downloadanaconda-63a336fcd94afd4d72566e353bec8be0b5ef1526.tar.gz
anaconda-63a336fcd94afd4d72566e353bec8be0b5ef1526.tar.xz
anaconda-63a336fcd94afd4d72566e353bec8be0b5ef1526.zip
Unmount /mnt/sysimage/dev manually since it doesn't get an entry.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/fsset.py b/fsset.py
index 2be73ad52..17883613e 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2132,13 +2132,10 @@ MAILADDR root
return ret
def umountFilesystems(self, instPath, ignoreErrors = 0, swapoff = True):
- # XXX remove special case
- try:
- isys.umount(instPath + '/proc/bus/usb', removeDir = 0)
- log.info("Umount USB OK")
- except:
-# log.error("Umount USB Fail")
- pass
+ # Unmount things bind mounted into the instPath here because they're
+ # not tracked by self.entries.
+ if os.path.ismount("%s/dev" % instPath):
+ isys.umount("%s/dev" % instPath, removeDir=0)
# take a slice so we don't modify self.entries
reverse = self.entries[:]