From 5ac0cccc4d2282245cf0d1a3c20e7515e7d55b3a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 11 Aug 2025 17:11:18 -0400 Subject: [PATCH] Update proxmoxve for trixie Have the proxmox post script adaptive between Debian 12 or 13 --- .../default/scripts/proxmox/proxmoxve.post | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post index fc413997..8cc89faf 100644 --- a/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post +++ b/confluent_osdeploy/debian/profiles/default/scripts/proxmox/proxmoxve.post @@ -2,12 +2,18 @@ # This script would run in post.d # export DEBIAN_FRONTEND=noninteractive -echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list -wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg -sum=$(sha512sum /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg) -if [ "$sum" -ne "7da6fe34168adc6e479327ba517796d4702fa2f8b4f0a9833f5ea6e6b48f6507a6da403a274fe201595edc86a84463d50383d07f64bdde2e3658108db7d6dc87" ]; then +codename=$(grep ^VERSION_CODENAME /etc/os-release | cut -d= -f2) +echo "deb [arch=amd64] http://download.proxmox.com/debian/pve $codename pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list +wget https://enterprise.proxmox.com/debian/proxmox-release-$codename.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-$codename.gpg +sum=$(sha512sum /etc/apt/trusted.gpg.d/proxmox-release-$codename.gpg) +if [ $codename == "bookworm" ]; then + expectedsum=7da6fe34168adc6e479327ba517796d4702fa2f8b4f0a9833f5ea6e6b48f6507a6da403a274fe201595edc86a84463d50383d07f64bdde2e3658108db7d6dc87 +elif [ $codename == "trixie" ]; then + expectedsum=8678f2327c49276615288d7ca11e7d296bc8a2b96946fe565a9c81e533f9b15a5dbbad210a0ad5cd46d361ff1d3c4bac55844bc296beefa4f88b86e44e69fa51 +fi +if [ "$sum" -ne "$expectedsum" ]; then echo "Mismatch in fingerprint!" - rm /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg + rm /etc/apt/trusted.gpg.d/proxmox-release-$codename.gpg exit 1 fi apt-get update && apt-get -y full-upgrade < /dev/null