From ebf9e3c26748770780a3c8653e6b76a0696473da Mon Sep 17 00:00:00 2001 From: rickpeters Date: Tue, 29 Sep 2026 18:48:14 +0200 Subject: [PATCH] fix: vmprogress.sh reports a failed install (it stayed at 'install' for 18 minutes) --- scripts/vmprogress.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/vmprogress.sh b/scripts/vmprogress.sh index da9e151..852df02 100755 --- a/scripts/vmprogress.sh +++ b/scripts/vmprogress.sh @@ -24,6 +24,9 @@ status() { # status : "state|pass|fail|finished(0/1)|started(0/1)" st=$(grep -aE '^##### ' <<< "$run" | tail -1 | sed 's/^##### [0-9:]* //' | cut -c1-40) if [[ "$st" == install* && -f "$dir/install-www/install.log" ]]; then st="install $(grep -aoE '^\[ *[0-9.]+%\] [^.(]*' "$dir/install-www/install.log" | tail -1 | sed 's/^\[ *\([0-9]*\)[0-9.]*%\] /\1% /; s/ *$//')" + # The live installer's own failure (vminstall-live.sh: "== failed: ..."), or the host side giving up. + local why; why=$(grep -ahE '^== failed: ' "$dir/install-www/install.log" "$log" 2>/dev/null | tail -1 | cut -c12-70) + [[ -n "$why" ]] && { st="INSTALL FAILED: $why"; f=$((f + 1)); } fi echo "${st:-starting}|$p|$f|0|1" }