Files
disko/tests/lvm-raid.nix
2025-02-15 10:08:56 +00:00

24 lines
515 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;
};
}