mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
nixos/swraid: fix regression for old initrd and add test coverage
This commit is contained in:
parent
14821ae8a8
commit
0e1a8027d1
@ -67,7 +67,7 @@ in {
|
||||
$out/bin/mdadm --version
|
||||
'';
|
||||
|
||||
extraFiles."/etc/mdadm.conf" = mdadm_conf;
|
||||
extraFiles."/etc/mdadm.conf".source = pkgs.writeText "mdadm.conf" mdadm_conf.text;
|
||||
|
||||
systemd = {
|
||||
contents."/etc/mdadm.conf".text = mdadm_conf.text;
|
||||
|
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user