Created
May 24, 2013 20:00
-
-
Save BlackMaria/5646121 to your computer and use it in GitHub Desktop.
Getting new CentOS ISO's for a fresh install on xcat. NB I use a monthly rsync for all mirrors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISTRO=centos6 | |
DISTRO_VERS=6.4 | |
ISO_ARCH=x86_64 | |
ISO_DISTRO=CentOS-${DISTRO_VERS} | |
RPM_MIRRIR=http://centos.mirror.iweb.ca | |
getisos(){ | |
for i in 1 2 | |
do | |
# http://centos.mirror.iweb.ca/6.4/isos/x86_64/CentOS-6.4-x86_64-bin-DVD1.iso | |
wget ${RPM_MIRRIR}/${DISTRO_VERS}/isos/${ISO_ARCH}/${ISO_DISTRO}-${ISO_ARCH}-bin-DVD${i}.iso | |
copycds -n ${DISTRO} -a ${ARCH} ${ISO_DISTRO}-${ISO_ARCH}-bin-DVD${i}.iso | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment