Skip to content

Instantly share code, notes, and snippets.

@brycied00d
Last active October 12, 2015 07:17
Show Gist options
  • Save brycied00d/3990291 to your computer and use it in GitHub Desktop.
Save brycied00d/3990291 to your computer and use it in GitHub Desktop.
Script to download the latest netboot/net-install files for Ubuntu
#!/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