diff --git a/modules/testing/test-instrumentation.nix b/modules/testing/test-instrumentation.nix index 6c8f6cfa797..5fff8fc84e8 100644 --- a/modules/testing/test-instrumentation.nix +++ b/modules/testing/test-instrumentation.nix @@ -86,9 +86,8 @@ in # Send all of /var/log/messages to the serial port. services.syslogd.extraConfig = "*.* /dev/ttyS0"; - # Clear the kernel log buffer before starting klogd to prevent it - # from printing messages that we have already seen. - jobs.klogd.preStart = "dmesg -c > /dev/null"; + # Don't run klogd. Kernel messages appear on the serial console anyway. + jobs.klogd.startOn = mkOverride 50 ""; # Prevent tests from accessing the Internet. networking.defaultGateway = mkOverride 150 "";