Skip to content

Commit d2b3ec5

Browse files
committed
Report failure reason on WaitForRunningSystem
For: QubesOS/qubes-core-admin#757 For: QubesOS/qubes-issues#1512
1 parent 6dcb083 commit d2b3ec5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
22
set -eu
3-
systemctl --wait --quiet is-system-running
4-
exit 0
3+
rc=0
4+
systemctl --wait is-system-running || rc=$?
5+
if test "$rc" -gt 0; then
6+
LC_ALL=C TERM=dumb systemctl --failed --legend=no
7+
fi
8+
exit "$rc"

0 commit comments

Comments
 (0)