about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2023-02-23 19:42:45 -0500
committerLily Foster <lily@lily.flowers>2023-02-23 19:42:45 -0500
commit308657daec2c8d3508b34f171305e9b10d297267 (patch)
treeac6947623c0170e81d6c77a8f6b4046262ac8bc2 /nixos/tests
parentb69883faca9542d135fa6bab7928ff1b233c167f (diff)
nixos/tests/systemd-shutdown: ensure systemd-initrd variant actually enables it
It looks like the systemd-initrd variant of the systemd-shutdown test
(systemd-initrd-shutdown) did not actually enable the systemd-initrd and
so was just evaluating to the same store path before this change.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-shutdown.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/systemd-shutdown.nix b/nixos/tests/systemd-shutdown.nix
index 688cd6dd2c175..dad8167f198fc 100644
--- a/nixos/tests/systemd-shutdown.nix
+++ b/nixos/tests/systemd-shutdown.nix
@@ -11,6 +11,7 @@ in {
     systemd.shutdownRamfs.contents."/etc/systemd/system-shutdown/shutdown-message".source = pkgs.writeShellScript "shutdown-message" ''
       echo "${msg}"
     '';
+    boot.initrd.systemd.enable = systemdStage1;
   };
 
   testScript = ''