[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 3/3] Check for valid mountpoint before unmounting image. (#671922)



---
 pyanaconda/image.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/image.py b/pyanaconda/image.py
index b590276..ed74976 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:
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]