summaryrefslogtreecommitdiffstats
path: root/tests/mdadm.nix
blob: 74a7d5d6ec77de3c832454ac5061e7b42bdc3034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
  disko-config = import ../example/mdadm.nix;
  extraTestScript = ''
    machine.succeed("test -b /dev/md/raid1");
    machine.succeed("mountpoint /");
  '';
  efi = false;
  grub-devices = [ "/dev/vdb" "/dev/vdc" ];
}