From 24ce7ff3eabd012443a1c2d435be6b73e771a6b9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Jan 2015 14:38:50 +0100 Subject: [PATCH] test-instrumentation.nix: Prevent calling a pager --- nixos/modules/testing/test-instrumentation.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/testing/test-instrumentation.nix b/nixos/modules/testing/test-instrumentation.nix index 4b4284d8531..f37bbd0246d 100644 --- a/nixos/modules/testing/test-instrumentation.nix +++ b/nixos/modules/testing/test-instrumentation.nix @@ -38,6 +38,11 @@ let kernel = config.boot.kernelPackages.kernel; in systemd.services."serial-getty@ttyS0".enable = false; systemd.services."serial-getty@hvc0".enable = false; + # Don't use a pager when executing backdoor actions. Because we + # use a tty, commands like systemctl or nix-store get confused + # into thinking they're running interactively. + environment.variables.PAGER = ""; + boot.initrd.postDeviceCommands = '' # Using acpi_pm as a clock source causes the guest clock to