Last active
October 12, 2015 07:17
-
-
Save brycied00d/3990291 to your computer and use it in GitHub Desktop.
Script to download the latest netboot/net-install files for Ubuntu
This file contains 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
#!/bin/bash | |
MIRROR=mirrors.us.kernel.org | |
ROOTDIR=/home/image/boot | |
for REL in vivid utopic trusty saucy precise lucid #raring quantal oneiric natty maverick | |
do | |
for ARCH in i386 amd64 | |
do | |
echo "Sync'ing Ubuntu $REL / $ARCH..." | |
mkdir -p $ROOTDIR/Ubuntu/$REL/$ARCH/ | |
cd $ROOTDIR/Ubuntu/$REL/$ARCH/ && wget -N http://$MIRROR/ubuntu/dists/$REL/main/installer-$ARCH/current/images/netboot/ubuntu-installer/$ARCH/initrd.gz http://$MIRROR/ubuntu/dists/$REL/main/installer-$ARCH/current/images/netboot/ubuntu-installer/$ARCH/linux | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment