mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
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:
co-authored by
Claude Opus 5
parent
5eb7a35dc9
commit
8b2680434d
@@ -34,6 +34,9 @@ fi
|
||||
# --- Distribution version pins (update these over time) ---
|
||||
ALPINE_MAJOR="v3.24"
|
||||
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_VER="2604"
|
||||
DEBIAN_CODENAME="trixie"
|
||||
@@ -121,9 +124,7 @@ fi
|
||||
case $DISTRO_CHOICE in
|
||||
alpine)
|
||||
VM_NAME="alpine-${ALPINE_MAJOR//v/}-cloudinit"
|
||||
# Upstream renamed the cloud image prefix from nocloud_ to generic_ in 3.24;
|
||||
# 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"
|
||||
IMAGE_URL="https://dl-cdn.alpinelinux.org/alpine/${ALPINE_MAJOR}/releases/cloud/${ALPINE_PREFIX}_alpine-${ALPINE_PATCH}-x86_64-uefi-cloudinit-r0.qcow2"
|
||||
DEFAULT_DISK_SIZE="8G"
|
||||
PKG_MGR="apk"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user