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

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

 



---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux