From 8124f63fa3829ffa61dfc342b7b7bcae2ba65464 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 20 Oct 2023 12:50:42 +0200 Subject: [PATCH] Detect unsupported Raspbian GNU/Linux 12 (bookworm) 32-bit --- installers/common.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index a98d0f84..ce4382f4 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -135,6 +135,17 @@ function _get_linux_distro() { else _install_status 1 "Unsupported Linux distribution" fi + + if [ ${OS,,} = "raspbian" ] && [[ ${RELEASE} =~ ^(12) ]]; then + echo "Detected OS: ${DESC} 32-bit" + echo "This OS introduces breaking changes to dhcpcd and is unsupported." + echo "If Raspberry Pi OS Lite (32-bit) is wanted, downgrade to bullseye." + echo "Note: Raspbian GNU/Linux 12 (bookworm) 64-bit is fully supported." + echo "See: https://docs.raspap.com/#compatible-operating-systems" + echo "The installer cannot continue." + _install_status 1 "Unsupported Linux distribution" + exit 0 + fi } # Sets php package option based on Linux version, abort if unsupported distro @@ -228,6 +239,7 @@ function _install_dependencies() { if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then dhcpcd_package="dhcpcd5" iw_package="iw" + echo "${dhcpcd_package} and ${iw_package} will be installed from the main deb sources list" fi # Set dconf-set-selections