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