diff --git a/download-image.sh b/download-image.sh index 05f1e92..1af0dd7 100755 --- a/download-image.sh +++ b/download-image.sh @@ -5,9 +5,9 @@ TARGET=${1:-raspbian.zip} # Note: if updating the image we're using, you should also update the hash # below. The hashes are available from Raspberry Pi as "$IMAGE.sha256". -IMAGE=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-12-01/2017-11-29-raspbian-stretch-lite.zip +IMAGE=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-06-24/2019-06-20-raspbian-buster-lite.zip -echo "e942b70072f2e83c446b9de6f202eb8f9692c06e7d92c343361340cc016e0c9f $TARGET" > sha256 +echo "9009409a9f969b117602d85d992d90563f181a904bc3812bdd880fc493185234 $TARGET" > sha256 # If we already have the file, and it's got the right hash, then skip the download sha256sum --check sha256 && echo "Image already downloaded." && exit 0 diff --git a/pi-prebuild.sh b/pi-prebuild.sh index a99ef9b..bfd647b 100755 --- a/pi-prebuild.sh +++ b/pi-prebuild.sh @@ -8,9 +8,6 @@ uname -a export DEBIAN_FRONTEND=noninteractive export APT_LISTCHANGES_FRONTEND=none -echo "Adding backports" -echo "deb [trusted=yes] http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list - echo "Updating apt" apt-get --quiet update -y @@ -30,7 +27,8 @@ apt-get --quiet install -y \ libopencv-contrib-dev \ libopencv-video-dev \ libopencv-photo-dev \ - python3-dev + python3-dev \ + python3-cffi echo "Install some useful tools for debugging" apt-get --quiet install -y \ @@ -40,9 +38,6 @@ apt-get --quiet install -y \ screen \ vim -echo "Installing bits and pieces from backports" -apt-get --quiet -t stretch install -y python3-cffi - echo "Rebuilding locale" echo "en_GB.UTF-8 UTF-8" > /etc/locale.gen echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen