Commit f4b15ee1 by Stéphane Graber

Merge pull request #444 from tukiyo/patch-1

no such option: --releasever on CentOS5's yum
parents 0ad409c7 6d41f7df
...@@ -413,7 +413,11 @@ download_centos() ...@@ -413,7 +413,11 @@ download_centos()
# download a mini centos into a cache # download a mini centos into a cache
echo "Downloading centos minimal ..." echo "Downloading centos minimal ..."
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release" if [ $release -le 5 ];then
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
else
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
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"
# use temporary repository definition # use temporary repository definition
......
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