Fix yum repo error 01/60201/2
authorAlex Yang <yangyang1@zte.com.cn>
Thu, 26 Jul 2018 07:21:30 +0000 (15:21 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Thu, 26 Jul 2018 08:41:06 +0000 (16:41 +0800)
See https://review.openstack.org/#/c/568180/

Change-Id: Ida065d7ac0ce00cf5c02be2a506a492c0f6123bd
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
tools/centos-img-modify.sh

index 5a2df82..41c730c 100755 (executable)
@@ -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