From b11a148d3c885456987fb42e2ecd78092b59a0dc Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 28 Oct 2026 11:25:08 +0100 Subject: [PATCH] Keep the console hint out of the default output Two lines on every install for a case that is rare, and the second one is unreadable when it matters: while the console is open the output is already on screen, and once it is closed the line cannot be read any more. --- pve/backend.func | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pve/backend.func b/pve/backend.func index f174779..390579b 100644 --- a/pve/backend.func +++ b/pve/backend.func @@ -1433,8 +1433,12 @@ PROFILE # The install owns the terminal now; a block left open on the host would resume its spinner over it. stop_spinner _MSG_BLOCKS=() - msg_custom "ℹ️" "${YW}" "Closing this console does not abort the install; it finishes on its own (Ctrl-C does abort)." - msg_custom " " "${YW}" "Follow it with: pct exec ${CTID} -- tail -f /root/.install-${SESSION_ID}.log" + # Not is_verbose_mode: that also answers yes when stderr is not a terminal, + # which is where nobody reads this. + if [[ "${VERBOSE:-${var_verbose:-no}}" != "no" ]]; then + msg_custom "ℹ️" "${YW}" "Closing this console does not abort the install; it finishes on its own (Ctrl-C does abort)." + msg_custom " " "${YW}" "Follow it with: pct exec ${CTID} -- tail -f /root/.install-${SESSION_ID}.log" + fi lxc-attach -n "$CTID" -- bash -c "printf '%s' \$\$ >/root/.install-${SESSION_ID}.pid $_install_script" local lxc_exit=$?