Skip to content

Commit acb1c4e

Browse files
authored
PVE 9.1 version support (#9280)
1 parent 2644451 commit acb1c4e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

misc/build.func

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ root_check() {
6565
}
6666

6767
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
68-
# Supported: Proxmox VE 8.0.x – 8.9.x and 9.0 (NOT 9.1+)
68+
# Supported: Proxmox VE 8.0.x – 8.9.x, 9.0 and 9.1
6969
pve_check() {
7070
local PVE_VER
7171
PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
@@ -81,20 +81,20 @@ pve_check() {
8181
return 0
8282
fi
8383

84-
# Check for Proxmox VE 9.x: allow ONLY 9.0
84+
# Check for Proxmox VE 9.x: allow 9.0 and 9.1
8585
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
8686
local MINOR="${BASH_REMATCH[1]}"
87-
if ((MINOR != 0)); then
88-
msg_error "This version of Proxmox VE is not yet supported."
89-
msg_error "Supported: Proxmox VE version 9.0"
87+
if ((MINOR < 0 || MINOR > 1)); then
88+
msg_error "This version of Proxmox VE is not supported."
89+
msg_error "Supported: Proxmox VE version 9.0 – 9.1"
9090
exit 1
9191
fi
9292
return 0
9393
fi
9494

9595
# All other unsupported versions
9696
msg_error "This version of Proxmox VE is not supported."
97-
msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0"
97+
msg_error "Supported versions: Proxmox VE 8.0 – 8.x or 9.0 – 9.1"
9898
exit 1
9999
}
100100

misc/create_lxc.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ if qm status "$CTID" &>/dev/null || pct status "$CTID" &>/dev/null; then
200200
fi
201201

202202
# This checks for the presence of valid Container Storage and Template Storage locations
203-
msg_info "Validating storage"
204203
if ! check_storage_support "rootdir"; then
205204
msg_error "No valid storage found for 'rootdir' [Container]"
206205
exit 1
@@ -210,7 +209,6 @@ if ! check_storage_support "vztmpl"; then
210209
exit 1
211210
fi
212211

213-
#msg_info "Checking template storage"
214212
while true; do
215213
if select_storage template; then
216214
TEMPLATE_STORAGE="$STORAGE_RESULT"

0 commit comments

Comments
 (0)