From 7d357ac716de93ba4ed846a3b21d0b527e262e9f Mon Sep 17 00:00:00 2001 From: Charles Hague Date: Tue, 31 Oct 2023 20:03:34 +0000 Subject: [PATCH 1/2] Prevent installation on Bookworm. --- bundler/bundle/install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bundler/bundle/install b/bundler/bundle/install index 4461bb5f9..eef993453 100755 --- a/bundler/bundle/install +++ b/bundler/bundle/install @@ -30,6 +30,15 @@ if [[ "$(lsb_release --id --short)" == 'Raspbian' ]] \ exit 1 fi +# Prevent installation on Raspberry Pi OS 12 "Bookworm". +if [[ "$(lsb_release --id --short)" == 'Raspbian' ]] \ + && (( "$(lsb_release --release --short)" > 11 )); then + echo "TinyPilot is not yet compatible with Raspberry Pi OS 12 \"Bookworm\"." >&2 + echo "You can track our progress by visiting https://github.com/tiny-pilot/tinypilot/issues/1668." >&2 + echo "To install TinyPilot, you'll need to downgrade your operating system to Raspberry Pi OS 11 \"Bullseye\"." >&2 + exit 1 +fi + # Abort installation if the read-only filesystem is enabled if grep -q "boot=overlay" /proc/cmdline ; then echo 'The read-only filesystem is enabled.' >&2 From 5c5850bbbe88c1441256215d11e1c3ab3e2fcb23 Mon Sep 17 00:00:00 2001 From: Charles Hague Date: Wed, 8 Nov 2023 23:59:52 +0000 Subject: [PATCH 2/2] Remove trailing punctuation. --- bundler/bundle/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundler/bundle/install b/bundler/bundle/install index eef993453..791705abb 100755 --- a/bundler/bundle/install +++ b/bundler/bundle/install @@ -34,7 +34,7 @@ fi if [[ "$(lsb_release --id --short)" == 'Raspbian' ]] \ && (( "$(lsb_release --release --short)" > 11 )); then echo "TinyPilot is not yet compatible with Raspberry Pi OS 12 \"Bookworm\"." >&2 - echo "You can track our progress by visiting https://github.com/tiny-pilot/tinypilot/issues/1668." >&2 + echo "You can track our progress by visiting https://github.com/tiny-pilot/tinypilot/issues/1668" >&2 echo "To install TinyPilot, you'll need to downgrade your operating system to Raspberry Pi OS 11 \"Bullseye\"." >&2 exit 1 fi