Detect unsupported Raspbian GNU/Linux 12 (bookworm) 32-bit

This commit is contained in:
billz 2023-10-20 12:50:42 +02:00
parent dc65af9045
commit a26a3b665e

View File

@ -136,6 +136,17 @@ function _get_linux_distro() {
else else
_install_status 1 "Unsupported Linux distribution" _install_status 1 "Unsupported Linux distribution"
fi 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 # Sets php package option based on Linux version, abort if unsupported distro
@ -229,6 +240,7 @@ function _install_dependencies() {
if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then if [ ${OS,,} = "debian" ] || [ ${OS,,} = "ubuntu" ]; then
dhcpcd_package="dhcpcd5" dhcpcd_package="dhcpcd5"
iw_package="iw" iw_package="iw"
echo "${dhcpcd_package} and ${iw_package} will be installed from the main deb sources list"
fi fi
# Set dconf-set-selections # Set dconf-set-selections