[f19-branch/master] Delete yum object when finished
David Lehman
dlehman at redhat.com
Wed Jun 12 02:26:43 UTC 2013
ACK
On Tue, 2013-06-11 at 17:04 -0700, Brian C. Lane wrote:
> 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
More information about the anaconda-patches
mailing list