diff options
author | David Lehman <dlehman@redhat.com> | 2011-02-09 10:17:01 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2011-02-10 10:40:12 -0600 |
commit | 508023948015e2e0154b378fa114c7f56fcfb554 (patch) | |
tree | ff261ffc2381811e4ea9bbaaa22bde73b0096d9e /pyanaconda/image.py | |
parent | 0edc43500292d0b31df0dc759617cbedc6015124 (diff) | |
download | anaconda-508023948015e2e0154b378fa114c7f56fcfb554.tar.gz anaconda-508023948015e2e0154b378fa114c7f56fcfb554.tar.xz anaconda-508023948015e2e0154b378fa114c7f56fcfb554.zip |
Check for valid mountpoint before unmounting image. (#671922)
Diffstat (limited to 'pyanaconda/image.py')
-rw-r--r-- | pyanaconda/image.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyanaconda/image.py b/pyanaconda/image.py index b590276ad..ed7497670 100644 --- a/pyanaconda/image.py +++ b/pyanaconda/image.py @@ -198,7 +198,8 @@ def scanForMedia(tree, storage): return None def umountImage(tree): - isys.umount(tree, removeDir=False) + if os.path.ismount(tree): + isys.umount(tree, removeDir=False) def unmountCD(dev, messageWindow): if not dev: |