From 1c8583d30469cbd1b4836360825a6e8b2defba72 Mon Sep 17 00:00:00 2001 From: FuturePilot Date: Wed, 8 Apr 2015 19:50:35 -0400 Subject: [PATCH] Do things more efficiently Make this process more efficient --- rpi2-build-image.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rpi2-build-image.sh b/rpi2-build-image.sh index 3962e9e..fe18729 100755 --- a/rpi2-build-image.sh +++ b/rpi2-build-image.sh @@ -57,17 +57,14 @@ cat ./configs/etc/apt/sources.list > $R/etc/apt/sources.list cat ./configs/usr/sbin/policy-rc.d > $R/usr/sbin/policy-rc.d chmod +x $R/usr/sbin/policy-rc.d -# Initial update/upgrade +# Update, upgrade, and set up PPAs chroot $R $SHELL -c "apt-get update" chroot $R $SHELL -c "apt-get -y install software-properties-common ubuntu-keyring" chroot $R $SHELL -c "apt-add-repository -y ppa:futurepilot/raspberry-pi-2" -chroot $R $SHELL -c "apt-get update" -chroot $R $SHELL -c "apt-get -y -u dist-upgrade" - -# Install the RPi PPA cat ./configs/etc/apt/preferences.d/rpi2-ppa > $R/etc/apt/preferences.d/rpi2-ppa chroot $R $SHELL -c "apt-add-repository -y ppa:fo0bar/rpi2" chroot $R $SHELL -c "apt-get update" +chroot $R $SHELL -c "apt-get -y -u dist-upgrade" # Standard packages chroot $R $SHELL -c "apt-get -y install ubuntu-standard initramfs-tools raspberrypi-bootloader-nokernel rpi2-ubuntu-errata language-pack-en openssh-server wpasupplicant linux-firmware libraspberrypi-bin libraspberrypi-bin-nonfree dphys-swapfile fake-hwclock"