From 94a7a7cf67fb84dd2934167b5707ba424b43473c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 23 Oct 2015 15:17:18 +1100 Subject: [PATCH] Create YUM_CACHE_DIR in yum-minimal yum-minimal/root.d/08-yum-chroot runs before yum/root.d/50-yum-cache, and thus if run on a completely fresh system will fail in 08-yum-chroot as the YUM_CACHE directory isn't made. This is probably hidden by testing & nodepool builds, because it sets DIB_IMAGE_CACHE. It was hidden from me because locally I have done builds using the "yum" element previously, which had created the cache. Change-Id: I333f5f7e67d198f75a522cc296c118c2e94a5ecb --- elements/yum-minimal/root.d/08-yum-chroot | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/yum-minimal/root.d/08-yum-chroot b/elements/yum-minimal/root.d/08-yum-chroot index 4a4e1eca0..73ee27159 100755 --- a/elements/yum-minimal/root.d/08-yum-chroot +++ b/elements/yum-minimal/root.d/08-yum-chroot @@ -38,6 +38,7 @@ EACTION="rm -r $WORKING" trap "$EACTION" EXIT YUM_CACHE=$DIB_IMAGE_CACHE/yum +mkdir -p $YUM_CACHE # install the [fedora|centos]-[release|repo] packages inside the # chroot, which are needed to bootstrap yum/dnf