disko/tests/lvm-raid.nix

13 lines
313 B
Nix
Raw Normal View History

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