From 3b3ab1b8f91c84ef2bdbd3065698691857568d46 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sat, 16 May 2026 00:45:10 +0200 Subject: [PATCH] OPNsense: replace undefined msg_warn with inline echo in alloc retry (#14500) --- vm/opnsense-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/opnsense-vm.sh b/vm/opnsense-vm.sh index b57c82cfd..9e491d6c8 100644 --- a/vm/opnsense-vm.sh +++ b/vm/opnsense-vm.sh @@ -746,7 +746,7 @@ alloc_delay=5 while :; do alloc_err=$(pvesm alloc $STORAGE $VMID $DISK0 4M 2>&1 >/dev/null) && break if [[ "$alloc_err" == *"got timeout"* && $alloc_attempt -lt $alloc_max ]]; then - msg_warn "pvesm alloc hit zfs timeout (attempt $alloc_attempt/$alloc_max), retrying in ${alloc_delay}s..." + echo -e "${YW}[WARN]${CL} pvesm alloc hit zfs timeout (attempt $alloc_attempt/$alloc_max), retrying in ${alloc_delay}s..." pvesm free "${DISK0_REF}" &>/dev/null || true sleep "$alloc_delay" alloc_attempt=$((alloc_attempt + 1))