diff options
author | 2018-07-26 15:21:30 +0800 | |
---|---|---|
committer | 2018-07-26 16:41:06 +0800 | |
commit | 69c6a946562435b1aafe846b3381dec6c7b5580a (patch) | |
tree | 4418507c048766e1aa0163bdc9103fff77ff87bc | |
parent | 4536b5bf0e6fb149e81a3513adc61a0463602143 (diff) |
Fix yum repo error
See https://review.openstack.org/#/c/568180/
Change-Id: Ida065d7ac0ce00cf5c02be2a506a492c0f6123bd
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
-rwxr-xr-x | tools/centos-img-modify.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |