Signed-off-by: Alexandre Létourneau <letourneau.alexandre@gmail.com>
# 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"