2023-07-28 15:04:18 +03:00
|
|
|
{ pkgs ? import <nixpkgs> { }
|
|
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
2022-08-25 19:36:56 +03:00
|
|
|
}:
|
2023-07-28 15:04:18 +03:00
|
|
|
diskoLib.testLib.makeDiskoTest {
|
2023-07-14 12:37:30 +03:00
|
|
|
inherit pkgs;
|
2023-02-21 19:19:39 +03:00
|
|
|
name = "lvm-raid";
|
2022-10-29 14:19:29 +03:00
|
|
|
disko-config = ../example/lvm-raid.nix;
|
2022-08-26 00:12:49 +03:00
|
|
|
extraTestScript = ''
|
2022-09-30 13:55:28 +03:00
|
|
|
machine.succeed("mountpoint /home");
|
2022-08-25 19:36:56 +03:00
|
|
|
'';
|
2023-07-15 17:57:18 +03:00
|
|
|
extraInstallerConfig = {
|
2023-12-07 02:07:29 +03:00
|
|
|
boot.kernelModules = [ "dm-raid" "raid0" "dm-mirror" ];
|
2022-08-26 00:12:49 +03:00
|
|
|
};
|
2023-07-20 19:43:06 +03:00
|
|
|
extraSystemConfig = {
|
|
|
|
# sadly systemd-boot fails to install to a raid /boot device
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
};
|
2022-08-25 19:36:56 +03:00
|
|
|
}
|