From 549681f6e217d6e713afb943d571afda83542a2f Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 8 Nov 2022 11:28:18 +0000 Subject: Updates to avoid common pitfalls when changing the RELEASE variable Fixes #635, fixes #645, fixes #632 --- stage0/prerun.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stage0') diff --git a/stage0/prerun.sh b/stage0/prerun.sh index d4dd0a1..024d369 100755 --- a/stage0/prerun.sh +++ b/stage0/prerun.sh @@ -1,5 +1,10 @@ #!/bin/bash -e +if [ "$RELEASE" != "bullseye" ]; then + echo "WARNING: RELEASE does not match the intended option for this branch." + echo " Please check the relevant README.md section." +fi + if [ ! -d "${ROOTFS_DIR}" ] || [ "${USE_QCOW2}" = "1" ]; then bootstrap ${RELEASE} "${ROOTFS_DIR}" http://raspbian.raspberrypi.org/raspbian/ fi -- cgit v1.2.3