about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorChristian Theune <ct@flyingcircus.io>2023-09-10 17:16:33 +0200
committerChristian Theune <ct@flyingcircus.io>2023-09-10 17:16:33 +0200
commit0e1a8027d128f993a323878d34b1bf453f7cb636 (patch)
tree6e284bf0fcb95daa21b401e503aa0ef06338f252 /nixos/tests
parent14821ae8a8d0029a229172a89964935b07d3c10d (diff)
downloadnixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar.gz
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar.bz2
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar.lz
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar.xz
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.tar.zst
nixlib-0e1a8027d128f993a323878d34b1bf453f7cb636.zip
nixos/swraid: fix regression for old initrd and add test coverage
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-initrd-swraid.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/systemd-initrd-swraid.nix b/nixos/tests/systemd-initrd-swraid.nix
index cb5b1cb4f535..d00e67b5705a 100644
--- a/nixos/tests/systemd-initrd-swraid.nix
+++ b/nixos/tests/systemd-initrd-swraid.nix
@@ -32,6 +32,9 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
     };
 
     specialisation.boot-swraid.configuration.virtualisation.rootDevice = "/dev/disk/by-label/testraid";
+    # This protects against a regression. We do not have to switch to it.
+    # It's sufficient to trigger its evaluation.
+    specialisation.build-old-initrd.configuration.boot.initrd.systemd.enable = lib.mkForce false;
   };
 
   testScript = ''