Skip to content

Fail install early on Raspbian Bookworm #1667

Description

@mtlynch

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions