disko/tests/lvm-raid.nix

19 lines
482 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> { }
, diskoLib ? pkgs.callPackage ../lib { }
2022-08-25 16:36:56 +00:00
}:
diskoLib.testLib.makeDiskoTest {
inherit pkgs;
2023-02-21 16:19:39 +00:00
name = "lvm-raid";
2022-10-29 11:19:29 +00:00
disko-config = ../example/lvm-raid.nix;
2022-08-25 21:12:49 +00:00
extraTestScript = ''
machine.succeed("mountpoint /home");
2022-08-25 16:36:56 +00:00
'';
extraInstallerConfig = {
boot.kernelModules = [ "dm-raid0" "dm-mirror" ];
2022-08-25 21:12:49 +00:00
};
extraSystemConfig = {
# sadly systemd-boot fails to install to a raid /boot device
boot.loader.systemd-boot.enable = false;
};
2022-08-25 16:36:56 +00:00
}