From 466e2fd89703cd47f7900e935503dc018f94849e Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:23:43 +0200 Subject: [PATCH] Add guidance when storage lacks rootdir support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show actionable guidance when the selected storage does not support 'rootdir' content. Adds msg_custom lines with instructions to enable 'Disk image' (rootdir) for the storage (Datacenter → Storage → → Edit → Content), plus links to the Proxmox storage docs and a GitHub discussions help page. Improves user troubleshooting before exiting with the existing error code. --- misc/build.func | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/build.func b/misc/build.func index 20cd33489..dfb21213d 100644 --- a/misc/build.func +++ b/misc/build.func @@ -5678,6 +5678,10 @@ create_lxc_container() { if ! pvesm status -content rootdir 2>/dev/null | awk 'NR>1{print $1}' | grep -qx "$CONTAINER_STORAGE"; then msg_error "Storage '$CONTAINER_STORAGE' ($STORAGE_TYPE) does not support 'rootdir' content." + msg_custom "💡" "${YW}" "Enable 'Disk image' (rootdir) for storage '${CONTAINER_STORAGE}' in:" + msg_custom " " "${YW}" "Datacenter → Storage → ${CONTAINER_STORAGE} → Edit → Content" + msg_custom "📖" "${YW}" "See: https://pve.proxmox.com/wiki/Storage" + msg_custom "🔗" "${YW}" "Help: https://github.com/community-scripts/ProxmoxVE/discussions" exit 213 fi msg_ok "Storage '$CONTAINER_STORAGE' ($STORAGE_TYPE) validated"