Author: eelco
Date: Mon Sep 13 17:36:01 2010
New Revision: 23769
URL: https://svn.nixos.org/websvn/nix/?rev=23769&sc=1
Log:
* Don't print kernel log messages twice.
Modified:
nixos/trunk/modules/testing/test-instrumentation.nix
Modified: nixos/trunk/modules/testing/test-instrumentation.nix
==============================================================================
--- nixos/trunk/modules/testing/test-instrumentation.nix Mon Sep 13
17:34:19 2010 (r23768)
+++ nixos/trunk/modules/testing/test-instrumentation.nix Mon Sep 13
17:36:01 2010 (r23769)
@@ -77,6 +77,10 @@
# 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";
+
# Prevent tests from accessing the Internet.
networking.defaultGateway = mkOverrideTemplate 150 {} "";
networking.nameservers = mkOverrideTemplate 150 {} [ ];
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits