From e9726eb85191c5699f12951e071cf2adf8eaaf10 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 20 Nov 2026 17:10:36 +0100 Subject: [PATCH] Kasm: show the installer's last lines when it fails The installer writes to ~/kasm-install.output, so a failure reached the trace with no output at all. The last 25 lines now go to the install log and the script exits with the installer's code. --- install/kasm-install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install/kasm-install.sh b/install/kasm-install.sh index 088fc2ee3..da20b05fd 100644 --- a/install/kasm-install.sh +++ b/install/kasm-install.sh @@ -63,7 +63,12 @@ curl_download "/opt/kasm_release_${KASM_VERSION}.tar.gz" "$KASM_URL" cd /opt tar -xf "kasm_release_${KASM_VERSION}.tar.gz" chmod +x /opt/kasm_release/install.sh -bash /opt/kasm_release/install.sh --accept-eula --no-swap-check --no-check-disk --ignore-dep-failures >~/kasm-install.output 2>&1 +bash /opt/kasm_release/install.sh --accept-eula --no-swap-check --no-check-disk --ignore-dep-failures >~/kasm-install.output 2>&1 || { + KASM_RC=$? + $STD tail -n 25 ~/kasm-install.output + msg_error "The Kasm installer failed (exit ${KASM_RC}), see ~/kasm-install.output" + exit "$KASM_RC" +} awk ' /^Kasm UI Login Credentials$/ {capture=1} capture {print}