Commit 35035bfe by tukiyo Committed by Stéphane Graber

no such option: --releasever on CentOS5's yum

Signed-off-by: 's avatartukiyo3 <tukiyo3@gmail.com>
parent d64a45ae
...@@ -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