[PATCH] Don't to unmount /mnt/source unless something's mounted there (#516304).

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

 



---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 84445b0..a56fd71 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1036,7 +1036,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
                                 "%s/var/cache/yum/%s" %(anaconda.rootPath, repo))
             except Exception, e:
                 log.debug("Error setting up media repository: %s" %(e,))
-        else:
+        elif os.path.exists(self.ayum.tree) and os.path.ismount(self.ayum.tree):
             isys.umount(self.ayum.tree)
 
         anaconda.backend.removeInstallImage()
-- 
1.6.1.3

_______________________________________________
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