From acb1c4efbd021c3832d7abf550c2b0f783df6523 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:36:29 +0100 Subject: [PATCH] PVE 9.1 version support (#9280) --- misc/build.func | 12 ++++++------ misc/create_lxc.sh | 2 -- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/misc/build.func b/misc/build.func index 1f3ff1fab..65d6100eb 100644 --- a/misc/build.func +++ b/misc/build.func @@ -65,7 +65,7 @@ root_check() { } # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. -# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+) +# Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1 pve_check() { local PVE_VER PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')" @@ -81,12 +81,12 @@ pve_check() { return 0 fi - # Check for Proxmox VE 9.x: allow ONLY 9.0 + # Check for Proxmox VE 9.x: allow 9.0 and 9.1 if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then local MINOR="${BASH_REMATCH[1]}" - if ((MINOR != 0)); then - msg_error "This version of Proxmox VE is not yet supported." - msg_error "Supported: Proxmox VE version 9.0" + if ((MINOR < 0 || MINOR > 1)); then + msg_error "This version of Proxmox VE is not supported." + msg_error "Supported: Proxmox VE version 9.0 – 9.1" exit 1 fi return 0 @@ -94,7 +94,7 @@ pve_check() { # All other unsupported versions msg_error "This version of Proxmox VE is not supported." - msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0" + msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1" exit 1 } diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index 317ca0ae8..975311f6a 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -200,7 +200,6 @@ if qm status "$CTID" &>/dev/null || pct status "$CTID" &>/dev/null; then fi # This checks for the presence of valid Container Storage and Template Storage locations -msg_info "Validating storage" if ! check_storage_support "rootdir"; then msg_error "No valid storage found for 'rootdir' [Container]" exit 1 @@ -210,7 +209,6 @@ if ! check_storage_support "vztmpl"; then exit 1 fi -#msg_info "Checking template storage" while true; do if select_storage template; then TEMPLATE_STORAGE="$STORAGE_RESULT"