disko/tests/lvm-raid.nix

13 lines
316 B
Nix
Raw Normal View History

{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
2022-08-25 16:36:56 +00:00
}:
2022-08-25 21:12:49 +00:00
makeDiskoTest {
2022-08-25 16:36:56 +00:00
disko-config = import ../example/lvm-raid.nix;
2022-08-25 21:12:49 +00:00
extraTestScript = ''
machine.succeed("mountpoint /mnt/home");
2022-08-25 16:36:56 +00:00
'';
2022-08-25 21:12:49 +00:00
extraConfig = {
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
};
2022-08-25 16:36:56 +00:00
}