Use systemd.debug-shell to enable journal access after reboot
In !12 (commits) we enable journal output by logging in as testuser
on the virtio terminal console.
This works but:
- journal output is not forwarded after the reboot and before the creation of
testuser
- it's a series of weird looking steps in the test suite
We should be able to instead do this:
- Add support for vterm shells in the
lib/gnomeosdistribution.pm
file, by copying functions fromsusedistribution.pm
:
- hyperv_console_switch
-
activate_console (the
$type eq 'console'
path)
-
Call
$self->add_console('debug-shell', 'tty-console', {tty => 9})
in thegnomeosdistribution->init
function. -
Modify bootloader args on first boot to include
systemd.debug-shell=1
-
After installation completes, select
debug-shell
console, and runbootctl set-timeout 3
, before rebooting. -
After reboot, use
bootloader_add_kernel_args
to enable journald forwarding to serial as we do on first boot.