mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-28 07:07:17 +02:00
[arm64] remove logic for custom debian arm64 template
This commit is contained in:
+2
-18
@@ -5707,9 +5707,7 @@ create_lxc_container() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
# Downloads an ARM64 LXC rootfs template to $1.
|
# Downloads an ARM64 LXC rootfs template from jenkins.linuxcontainers.org.
|
||||||
# Debian: fetches latest release from community-scripts/debian-arm64-lxc on GitHub.
|
|
||||||
# Others: fetches from jenkins.linuxcontainers.org.
|
|
||||||
download_arm64_template() {
|
download_arm64_template() {
|
||||||
local dest="$1" url
|
local dest="$1" url
|
||||||
|
|
||||||
@@ -5718,21 +5716,7 @@ create_lxc_container() {
|
|||||||
exit 207
|
exit 207
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$PCT_OSTYPE" == "debian" ]]; then
|
url="https://jenkins.linuxcontainers.org/job/image-${PCT_OSTYPE}/architecture=arm64,release=${CUSTOM_TEMPLATE_VARIANT},variant=default/lastStableBuild/artifact/rootfs.tar.xz"
|
||||||
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
|
|
||||||
|
|
||||||
msg_info "Downloading ${PCT_OSTYPE^} ${CUSTOM_TEMPLATE_VARIANT} ARM64 template"
|
msg_info "Downloading ${PCT_OSTYPE^} ${CUSTOM_TEMPLATE_VARIANT} ARM64 template"
|
||||||
if ! curl -fsSL -o "$dest" "$url"; then
|
if ! curl -fsSL -o "$dest" "$url"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user