From fe4364c7e19818a3996f5019d71a8aebd8d3f860 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 24 Jan 2026 22:29:35 +0000 Subject: [PATCH] fix(quickget): use ARCH for Debian ISOs and validate arm64 editions - Use ARCH as DEBIAN_ARCH when constructing ISO filename and cdimage URL - Update DEBCURRENT handling to select arch-specific iso-hybrid path - Add explicit error and exit if arm64 is requested with a non-netinst edition (Debian provides netinst images only for ARM64) Signed-off-by: Martin Wimpress --- quickget | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 6422a2e..698c59f 100755 --- a/quickget +++ b/quickget @@ -1943,13 +1943,21 @@ function get_crunchbang++() { } function get_debian() { + local DEBIAN_ARCH="${ARCH}" local DEBCURRENT="" local HASH="" - local ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" - local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid" + local ISO="debian-live-${RELEASE}-${DEBIAN_ARCH}-${EDITION}.iso" + local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/${DEBIAN_ARCH}/iso-hybrid" + + # Debian only provides netinst images for ARM64 + if [ "${DEBIAN_ARCH}" == "arm64" ] && [ "${EDITION}" != "netinst" ]; then + echo "ERROR! Debian ${EDITION} is not available for ARM64. Use 'netinst' edition." + exit 1 + fi + DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1) case "${RELEASE}" in - "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; + "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/${DEBIAN_ARCH}/iso-hybrid";; esac if [ "${EDITION}" == "netinst" ]; then URL="${URL/-live/}"