From ab9f4b68f233a2a0cdb33f1f3e914ea108630783 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Thu, 2 Apr 2026 03:53:40 +0200 Subject: [PATCH] Report failure reason on WaitForRunningSystem For: https://github.com/QubesOS/qubes-core-admin/pull/757 For: https://github.com/QubesOS/qubes-issues/issues/1512 --- qubes-rpc/qubes.WaitForRunningSystem | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qubes-rpc/qubes.WaitForRunningSystem b/qubes-rpc/qubes.WaitForRunningSystem index 6c419a1de..06ed3493a 100755 --- a/qubes-rpc/qubes.WaitForRunningSystem +++ b/qubes-rpc/qubes.WaitForRunningSystem @@ -1,4 +1,8 @@ #!/bin/sh set -eu -systemctl --wait --quiet is-system-running -exit 0 +rc=0 +systemctl --wait is-system-running >&2 || rc=$? +if test "$rc" -gt 0; then + LC_ALL=C TERM=dumb systemctl --failed --legend=no >&2 +fi +exit "$rc"