Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Created May 24, 2013 20:00
Show Gist options
  • Save BlackMaria/5646121 to your computer and use it in GitHub Desktop.
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
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