mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
install.sh installs on Debian 13
install.sh only accepted Debian 12, which cannot run this version, and rejected Debian 13. It now requires Debian 13 or newer on both PCs and Raspberry Pis. The install scripts point to the drive wizard instead of manual mounting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7aa7481a56
commit
00b86f69d4
5 changed files with 30 additions and 32 deletions
23
install.sh
23
install.sh
|
|
@ -31,16 +31,23 @@ while getopts ":hb:" option; do
|
|||
done
|
||||
|
||||
rpi=false
|
||||
debian12=false
|
||||
if (grep 'Raspberry Pi' /proc/cpuinfo >/dev/null); then
|
||||
rpi=true
|
||||
fi
|
||||
if (grep 'PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"' /etc/os-release >/dev/null); then
|
||||
debian12=true
|
||||
fi
|
||||
|
||||
if [[ ${rpi} == false && ${debian12} == false ]]; then
|
||||
echo 'This script can only be run on a Raspberry Pi or Debian 12!' && exit 2
|
||||
# Raspberry Pi OS and Debian both report the Debian release in VERSION_ID. WROLPi requires Debian 13 (trixie) or
|
||||
# newer; Debian 12 installs stay on their final version and cannot be upgraded in place.
|
||||
os_id=""
|
||||
os_version=""
|
||||
if [ -r /etc/os-release ]; then
|
||||
os_id=$(awk -F= '$1=="ID"{gsub(/"/,"",$2);print $2}' /etc/os-release)
|
||||
os_version=$(awk -F= '$1=="VERSION_ID"{gsub(/"/,"",$2);print $2}' /etc/os-release)
|
||||
fi
|
||||
case "${os_version}" in
|
||||
'' | *[!0-9]*) os_version=0 ;;
|
||||
esac
|
||||
if [[ ${os_id} != "debian" || ${os_version} -lt 13 ]]; then
|
||||
echo 'This script can only be run on Debian 13 (trixie) or newer, or Raspberry Pi OS based on it!' && exit 2
|
||||
fi
|
||||
|
||||
set -x
|
||||
|
|
@ -63,8 +70,8 @@ git clone https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi || :
|
|||
if [ ${rpi} == true ]; then
|
||||
/opt/wrolpi/scripts/install_raspberrypios.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
install_code=${PIPESTATUS[0]}
|
||||
elif [ ${debian12} == true ]; then
|
||||
/opt/wrolpi/scripts/install_debian_12.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
else
|
||||
/opt/wrolpi/scripts/install_debian.sh 2>&1 | tee /opt/wrolpi/install.log
|
||||
install_code=${PIPESTATUS[0]}
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue