From ea9b0daeee2e14fce2578bc00115ac9f513e3473 Mon Sep 17 00:00:00 2001 From: nikstur Date: Fri, 18 Oct 2024 10:05:36 +0200 Subject: [PATCH] nixos/test-instrumentation: forward journald to correct tty also in systemd initrd This is a follow up for #339730 where forwarding was correctly setup for stage 2 but not for stage 1 if it is using systemd. --- nixos/modules/testing/test-instrumentation.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix index 0f551dcbd63b..050c817e8718 100644 --- a/nixos/modules/testing/test-instrumentation.nix +++ b/nixos/modules/testing/test-instrumentation.nix @@ -90,6 +90,7 @@ in contents."/etc/systemd/journald.conf".text = '' [Journal] ForwardToConsole=yes + TTYPath=/dev/${qemu-common.qemuSerialDevice} MaxLevelConsole=debug '';