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 <martin@wimpress.org>
This commit is contained in:
parent
b62c144480
commit
fe4364c7e1
14
quickget
14
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/}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue