From 12d9a4642c7706130f71cd59eb53f9a17e70d48e Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 21 May 2026 16:46:51 +0200 Subject: [PATCH] Choose Ceph repo based on PVE minor Pass PVE_MINOR into start_routines_9 and use it to pick the correct Ceph repository. start_routines_9 now accepts an optional PVE_MINOR (default 0). The script determines CEPH_RELEASE as "ceph-tentacle" for PVE minor >= 2, otherwise "ceph-squid", updates the deb822 URIs accordingly, and includes the selected release in the confirmation message. --- tools/pve/post-pve-install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/pve/post-pve-install.sh b/tools/pve/post-pve-install.sh index 5d86d8589..5ab298deb 100644 --- a/tools/pve/post-pve-install.sh +++ b/tools/pve/post-pve-install.sh @@ -96,7 +96,7 @@ main() { msg_error "Only Proxmox 9.0-9.2.x is currently supported" exit 105 fi - start_routines_9 + start_routines_9 "$PVE_MINOR" else msg_error "Unsupported Proxmox VE major version: $PVE_MAJOR" echo -e "Supported: 8.0–8.9.x and 9.0–9.2.x" @@ -188,6 +188,7 @@ EOF } start_routines_9() { + local PVE_MINOR="${1:-0}" header_info # check if deb822 Sources (*.sources) exist @@ -475,15 +476,21 @@ EOF "no" " " 3>&2 2>&1 1>&3) case $CHOICE in yes) + local CEPH_RELEASE + if ((PVE_MINOR >= 2)); then + CEPH_RELEASE="ceph-tentacle" + else + CEPH_RELEASE="ceph-squid" + fi msg_info "Adding 'ceph package repositories' (deb822)" cat >/etc/apt/sources.list.d/ceph.sources <