Commit b3eeaf70 by Alexandre Létourneau Committed by Stéphane Graber

Added a more reliable test for yum --releasever in the centos template

parent f9bae49c
......@@ -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 '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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment