Track the Alpine cloud image prefix as a pin

Alpine renamed the prefix from nocloud_ to generic_ in 3.24, which was
hardcoded in the URL and so had to be edited by hand alongside the version
bump. As a pin it sits with the other values a release bump touches, and
update-image-pins.sh can read the real prefix off the mirror rather than
assuming one.

No change to the URL produced: still generic_ for the pinned 3.24.1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ergosteur
2026-08-07 16:04:41 +00:00
co-authored by Claude Opus 5
parent 5eb7a35dc9
commit 8b2680434d
+4 -3
View File
@@ -34,6 +34,9 @@ fi
# --- Distribution version pins (update these over time) --- # --- Distribution version pins (update these over time) ---
ALPINE_MAJOR="v3.24" ALPINE_MAJOR="v3.24"
ALPINE_PATCH="3.24.1" ALPINE_PATCH="3.24.1"
# Upstream renamed the cloud image prefix from nocloud_ to generic_ in 3.24, so
# this tracks the branch: generic_ for 3.24+, nocloud_ for 3.23 and older.
ALPINE_PREFIX="generic"
UBUNTU_CODENAME="resolute" # 26.04 LTS UBUNTU_CODENAME="resolute" # 26.04 LTS
UBUNTU_VER="2604" UBUNTU_VER="2604"
DEBIAN_CODENAME="trixie" DEBIAN_CODENAME="trixie"
@@ -121,9 +124,7 @@ fi
case $DISTRO_CHOICE in case $DISTRO_CHOICE in
alpine) alpine)
VM_NAME="alpine-${ALPINE_MAJOR//v/}-cloudinit" VM_NAME="alpine-${ALPINE_MAJOR//v/}-cloudinit"
# Upstream renamed the cloud image prefix from nocloud_ to generic_ in 3.24; IMAGE_URL="https://dl-cdn.alpinelinux.org/alpine/${ALPINE_MAJOR}/releases/cloud/${ALPINE_PREFIX}_alpine-${ALPINE_PATCH}-x86_64-uefi-cloudinit-r0.qcow2"
# 3.23 and older only have nocloud_, so this URL is not backward-compatible.
IMAGE_URL="https://dl-cdn.alpinelinux.org/alpine/${ALPINE_MAJOR}/releases/cloud/generic_alpine-${ALPINE_PATCH}-x86_64-uefi-cloudinit-r0.qcow2"
DEFAULT_DISK_SIZE="8G" DEFAULT_DISK_SIZE="8G"
PKG_MGR="apk" PKG_MGR="apk"
;; ;;