diff --git a/qemu/rootfs/sbin/init b/qemu/rootfs/sbin/init index 600e2fe..af442a4 100755 --- a/qemu/rootfs/sbin/init +++ b/qemu/rootfs/sbin/init @@ -106,7 +106,11 @@ if [ -x /usr/bin/warden-ui ] && [ -c /dev/fb0 ]; then # is one grep away for any scenario driving the VM from outside, and the # signal or status that caused it is on the line. ( - /usr/bin/warden-ui > /tmp/warden-ui.log 2>&1 + # tee, not a plain redirect: the UI's own log (LV_LOG_USER and friends) + # is the most useful thing there is when a scenario does not do what it + # should, and a scenario driving the VM from outside can only see the + # CONSOLE. The file is kept as well so the exit dump below still works. + /usr/bin/warden-ui 2>&1 | tee /tmp/warden-ui.log rc=$? echo "init: warden-ui EXITED rc=$rc" # 128+n is a signal death (139 = SIGSEGV); dump the tail so the