mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
27 lines
769 B
Nix
27 lines
769 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "module";
|
|
disko-config = ../example/complex.nix;
|
|
extraInstallerConfig.networking.hostId = "8425e349";
|
|
extraSystemConfig = {
|
|
networking.hostId = "8425e349";
|
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
|
};
|
|
testMode = "module";
|
|
extraTestScript = ''
|
|
machine.succeed("test -b /dev/md/raid1p1");
|
|
|
|
|
|
machine.succeed("mountpoint /zfs_fs");
|
|
machine.succeed("mountpoint /zfs_legacy_fs");
|
|
machine.succeed("mountpoint /ext4onzfs");
|
|
machine.succeed("mountpoint /ext4_on_lvm");
|
|
'';
|
|
extraInstallerConfig = {
|
|
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
|
|
};
|
|
}
|