From 43efa3c814d61a1fbaf14b697e3cf4f1f4f486b8 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Thu, 11 Jun 2026 22:04:26 +1000 Subject: [PATCH] [arm64] remove logic for custom debian arm64 template --- misc/build.func | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/misc/build.func b/misc/build.func index 6d595f88c..c16d8a17f 100644 --- a/misc/build.func +++ b/misc/build.func @@ -5707,9 +5707,7 @@ create_lxc_container() { esac } - # Downloads an ARM64 LXC rootfs template to $1. - # Debian: fetches latest release from community-scripts/debian-arm64-lxc on GitHub. - # Others: fetches from jenkins.linuxcontainers.org. + # Downloads an ARM64 LXC rootfs template from jenkins.linuxcontainers.org. download_arm64_template() { local dest="$1" url @@ -5718,21 +5716,7 @@ create_lxc_container() { exit 207 } - if [[ "$PCT_OSTYPE" == "debian" ]]; then - url=$( - curl -fsSL "https://api.github.com/repos/community-scripts/debian-arm64-lxc/releases/latest" | - jq -r --arg v "$CUSTOM_TEMPLATE_VARIANT" \ - '.assets[].browser_download_url | select(test("debian-" + $v + "-arm64-rootfs\\.tar\\.xz$"))' | - head -n1 - ) - - [[ -n "$url" ]] || { - msg_error "Could not find Debian ${CUSTOM_TEMPLATE_VARIANT} ARM64 template URL." - exit 207 - } - else - url="https://jenkins.linuxcontainers.org/job/image-${PCT_OSTYPE}/architecture=arm64,release=${CUSTOM_TEMPLATE_VARIANT},variant=default/lastStableBuild/artifact/rootfs.tar.xz" - fi + url="https://jenkins.linuxcontainers.org/job/image-${PCT_OSTYPE}/architecture=arm64,release=${CUSTOM_TEMPLATE_VARIANT},variant=default/lastStableBuild/artifact/rootfs.tar.xz" msg_info "Downloading ${PCT_OSTYPE^} ${CUSTOM_TEMPLATE_VARIANT} ARM64 template" if ! curl -fsSL -o "$dest" "$url"; then