From 0e1a8027d128f993a323878d34b1bf453f7cb636 Mon Sep 17 00:00:00 2001 From: Christian Theune Date: Sun, 10 Sep 2023 17:16:33 +0200 Subject: nixos/swraid: fix regression for old initrd and add test coverage --- nixos/tests/systemd-initrd-swraid.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/tests') 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 = '' -- cgit 1.4.1