Merge pull request #480 from aletourneau/centos.releasever

Added a more reliable test for yum --releasever in the centos template
This commit is contained in:
Stéphane Graber 2015-04-01 18:31:24 -04:00
commit b2937903a0

View File

@ -413,10 +413,10 @@ download_centos()
# download a mini centos into a cache
echo "Downloading centos minimal ..."
if [ $release -le 5 ];then
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
else
if yum -h | grep -q 'releasever=RELEASEVER'; then
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
else
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
fi
PKG_LIST="yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils"