[f19-branch/master] Delete yum object when finished

Brian C. Lane bcl at redhat.com
Wed Jun 12 00:04:28 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

I was able to reproduce the problem with /mnt/sysimage being busy at the
end of the install and the umount failing by using livemedia-creator and
image install mode. Yum was keeping the /mny/sysimage/tmp/yum.log open.
This makes sure yum is really dead when we're done.
---
 pyanaconda/packaging/yumpayload.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 531ebb9..fdcbfb6 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1675,3 +1675,6 @@ reposdir=%s
 
         super(YumPayload, self).postInstall()
 
+        # Make sure yum is really done and gone and lets go of the yum.log
+        self._yum.close()
+        del self._yum
-- 
1.8.1.4



More information about the anaconda-patches mailing list