mirror of
https://github.com/nix-community/disko
synced 2024-11-13 23:57:12 +00:00
18 lines
489 B
Nix
18 lines
489 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "lvm-raid";
|
|
disko-config = ../example/lvm-raid.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("mountpoint /home");
|
|
'';
|
|
extraInstallerConfig = {
|
|
boot.kernelModules = [ "dm-raid" "raid0" "dm-mirror" ];
|
|
};
|
|
extraSystemConfig = {
|
|
# sadly systemd-boot fails to install to a raid /boot device
|
|
boot.loader.systemd-boot.enable = false;
|
|
};
|
|
}
|