From: Alex Yang Date: Thu, 26 Jul 2018 07:21:30 +0000 (+0800) Subject: Fix yum repo error X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=69c6a946562435b1aafe846b3381dec6c7b5580a;p=daisy.git Fix yum repo error See https://review.openstack.org/#/c/568180/ Change-Id: Ida065d7ac0ce00cf5c02be2a506a492c0f6123bd Signed-off-by: Alex Yang --- 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