Use temporary yum cache dir during MOS repo sync

During an ISO build, the MOS repository is synced by using reposync
utility. This utility should store cached metadata in a local temporary
directory, in order to prevent issues with stale yum cache.

Change-Id: I92573191f6c9b4d4a17b14890d0ab88ceb0a75c0
Closes-Bug: #1529073
This commit is contained in:
Vitaly Parakhin 2015-12-25 13:09:44 +02:00
parent df53822a48
commit 7e588d6acd
1 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,12 @@
mos_centos_empty_installroot:=$(BUILD_DIR)/mirror/centos/dummy_mos_installroot
$(BUILD_DIR)/mirror/centos/mos-download.done: $(BUILD_DIR)/mirror/centos/yum-config.done
mkdir -p $(@D)
mkdir -p $(LOCAL_MIRROR_MOS_CENTOS)
set -ex ; reposync --norepopath --downloadcomps --plugins --delete --arch=$(CENTOS_ARCH) \
mkdir -p "$(mos_centos_empty_installroot)/cache"
set -ex ; env TMPDIR="$(mos_centos_empty_installroot)/cache" \
TMP="$(mos_centos_empty_installroot)/cache" \
reposync --norepopath --downloadcomps --plugins --delete --arch=$(CENTOS_ARCH) \
-c $(BUILD_DIR)/mirror/centos/etc/yum.conf --repoid=fuel -p $(LOCAL_MIRROR_MOS_CENTOS)
$(ACTION.TOUCH)