From 9c9dc863a2b2e6cb505a7281d5477eb11e08ed6e Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:52:06 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/misc/build.func b/misc/build.func index 5c140289..55fc96a8 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3046,7 +3046,12 @@ create_lxc_container() { msg_ok "Template found online: $TEMPLATE" else # Nothing found - offer alternatives - msg_error "No template found for ${PCT_OSTYPE} ${PCT_OSVERSION}" + msg_error "Template not found for ${PCT_OSTYPE} ${PCT_OSVERSION}" + echo "" + echo "This could mean:" + echo " • The version is not yet available in the Proxmox template repository" + echo " • Your Proxmox VE might need an update to access newer templates" + echo " • The version number might be incorrect" mapfile -t AVAILABLE_VERSIONS < <( pveam available -section system 2>/dev/null | @@ -3058,7 +3063,7 @@ create_lxc_container() { if [[ ${#AVAILABLE_VERSIONS[@]} -gt 0 ]]; then echo "" - echo "${BL}Available ${PCT_OSTYPE} versions:${CL}" + msg_info "Available ${PCT_OSTYPE} versions:" for i in "${!AVAILABLE_VERSIONS[@]}"; do echo " [$((i + 1))] ${AVAILABLE_VERSIONS[$i]}" done @@ -3076,11 +3081,16 @@ create_lxc_container() { exit 225 fi else - msg_info "Cancelled" + msg_info "Installation cancelled" exit 0 fi else msg_error "No templates available for ${PCT_OSTYPE}" + echo "" + echo "Please check:" + echo " • Run: pveam update" + echo " • Check network connectivity" + echo " • Verify Proxmox VE version: pveversion" exit 225 fi fi