From e13e2ee2ede69bf14d6b8b06a1747b96d1a00d28 Mon Sep 17 00:00:00 2001 From: Charles Cross Date: Mon, 2 May 2016 12:16:52 -0700 Subject: [PATCH] Added comments --- stage0/01-configure-apt/00-run.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stage0/01-configure-apt/00-run.sh b/stage0/01-configure-apt/00-run.sh index 9b2bd2e..99adb68 100755 --- a/stage0/01-configure-apt/00-run.sh +++ b/stage0/01-configure-apt/00-run.sh @@ -1,8 +1,10 @@ #!/bin/bash -e +# Install source lists install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/ install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/ +# Set up proxy, if it exists if [ -n "$APT_PROXY" ]; then install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|" @@ -10,8 +12,13 @@ else rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache fi +# Add the raspberry pi gpg key on_chroot apt-key add - < files/raspberrypi.gpg.key + +# Update and dist upgrade on_chroot sh -e - << EOF + apt-get update apt-get dist-upgrade -y + EOF