Skip to content

Commit

Permalink
new buster base image
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nn0 committed Oct 16, 2019
1 parent c2b9656 commit 57265ff
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions image/mk_europe_edition_buster.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

# To run this, make sure that this is installed:
# sudo apt install --yes qemu-user-static gparted qemu-system-arm
# sudo apt install --yes qemu-user-static qemu-system-arm
# Run this script as root.
# Run with argument "dev" to not clone the stratux repository from remote, but instead copy this current local checkout onto the image

BASE_IMAGE_URL="http://director.downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-07-12/2019-07-10-raspbian-buster-lite.zip"
IMGNAME="2019-07-10-raspbian-buster-lite.img"
BASE_IMAGE_URL="https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-09-30/2019-09-26-raspbian-buster-lite.zip"
ZIPNAME="2019-09-26-raspbian-buster-lite.zip"
IMGNAME="${ZIPNAME%.*}.img"
TMPDIR="$HOME/stratux-tmp"

if [ "$#" -ne 2 ]; then
Expand All @@ -22,7 +23,7 @@ cd $TMPDIR

# Download/extract image
wget -c $BASE_IMAGE_URL
unzip 2019-07-10-raspbian-buster-lite.zip
unzip $ZIPNAME

# Check where in the image the root partition begins:
sector=$(fdisk -l $IMGNAME | grep Linux | awk -F ' ' '{print $2}')
Expand Down

0 comments on commit 57265ff

Please sign in to comment.