Related https://github.com/tiny-pilot/tinypilot-pro/issues/1113
In testing, we've found that some of TinyPilot's dependencies don't yet work for Raspbian Bookworm.
We should bail the install early with a clear error message to prevent users from trying to install TinyPilot on Bookworm and then being surprised when things break later on.
We have an established precedent for Raspbian version checks here:
|
# Prevent installation on OS versions lower than Raspberry Pi OS 11 "Bullseye". |
|
# Note: the distro ID is called "Raspbian" because the 32-bit version of the |
|
# Raspberry Pi operating system is based on Raspbian repos (an independent |
|
# open-source project). Similarly, the the 64-bit version of the Raspberry Pi |
|
# operating system is based on Debian and its distro ID would be "Debian". |
|
if [[ "$(lsb_release --id --short)" == 'Raspbian' ]] \ |
|
&& (( "$(lsb_release --release --short)" < 11 )); then |
|
echo "TinyPilot no longer supports Raspberry Pi OS 10 \"Buster\" or lower." >&2 |
|
echo "To install TinyPilot, you'll need to upgrade your operating system to Raspberry Pi OS 11 \"Bullseye\"." >&2 |
|
exit 1 |
|
fi |
Related https://github.com/tiny-pilot/tinypilot-pro/issues/1113
In testing, we've found that some of TinyPilot's dependencies don't yet work for Raspbian Bookworm.
We should bail the install early with a clear error message to prevent users from trying to install TinyPilot on Bookworm and then being surprised when things break later on.
We have an established precedent for Raspbian version checks here:
tinypilot/bundler/bundle/install
Lines 21 to 31 in 951b9bf