From 69c6a946562435b1aafe846b3381dec6c7b5580a Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 26 Jul 2018 15:21:30 +0800 Subject: Fix yum repo error See https://review.openstack.org/#/c/568180/ Change-Id: Ida065d7ac0ce00cf5c02be2a506a492c0f6123bd Signed-off-by: Alex Yang --- tools/centos-img-modify.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/centos-img-modify.sh b/tools/centos-img-modify.sh index 5a2df82f..41c730cb 100755 --- a/tools/centos-img-modify.sh +++ b/tools/centos-img-modify.sh @@ -74,3 +74,6 @@ cd /etc if [ ! -z $localtime_file ] && [ -f $localtime_file ]; then ln -s -f $localtime_file /etc/localtime fi + +# https://review.openstack.org/#/c/568180/ +test -e /etc/yum/vars/contentdir || echo centos > /etc/yum/vars/contentdir -- cgit 1.2.3-korg