Commit b2937903 by Stéphane Graber

Merge pull request #480 from aletourneau/centos.releasever

Added a more reliable test for yum --releasever in the centos template
parents 240da430 85ccd3d5
...@@ -413,10 +413,10 @@ download_centos() ...@@ -413,10 +413,10 @@ download_centos()
# download a mini centos into a cache # download a mini centos into a cache
echo "Downloading centos minimal ..." echo "Downloading centos minimal ..."
if [ $release -le 5 ];then if yum -h | grep -q 'releasever=RELEASEVER'; then
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
else
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release" YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
else
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
fi fi
PKG_LIST="yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils" 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