From bf43862f3b4831bd812d5f5776290389e180dd59 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 17 Nov 2012 12:16:54 +0100 Subject: [PATCH] fedorize-image: clean yum cache before install This is mostly required for template-builder-repo, in which packages can be rebuild without version change (so rpm hash will be different). In case of image update (instead of fresh install) cache can contain outdated information. This is especially needed before qubeize_image, which install packages from this repo, but one package in fedorize_image (qubes-vm-kernel-placeholder) is installed at this stage. In any case fedorize_images is always called just before qubeize_image, so one yum clean is enough. --- fedorize_image | 1 + 1 file changed, 1 insertion(+) diff --git a/fedorize_image b/fedorize_image index d08ab17..499a610 100755 --- a/fedorize_image +++ b/fedorize_image @@ -52,6 +52,7 @@ mount -t proc proc mnt/proc PKGGROUPS=$(cat $PKGLISTFILE) export YUM0=$PWD/yum_repo_qubes echo "-> Installing package groups..." +yum clean all -c $PWD/yum.conf $YUM_OPTS -y --installroot=$PWD/mnt yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR $PKGGROUPS || RETCODE=1 yum update -c $PWD/yum.conf $YUM_OPTS -y --installroot=$INSTALLDIR || RETCODE=1