mirror of
https://github.com/nix-community/disko.git
synced 2024-11-05 06:04:20 +03:00
17 lines
449 B
Nix
17 lines
449 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "luks-on-mdadm";
|
|
disko-config = ../example/luks-on-mdadm.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("test -b /dev/md/raid1");
|
|
machine.succeed("mountpoint /");
|
|
'';
|
|
extraSystemConfig = {
|
|
# sadly systemd-boot fails to install to a raid /boot device
|
|
boot.loader.systemd-boot.enable = false;
|
|
};
|
|
}
|