2023-07-28 12:04:18 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { }
|
|
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
2022-08-29 09:45:19 +00:00
|
|
|
}:
|
2023-07-28 12:04:18 +00:00
|
|
|
diskoLib.testLib.makeDiskoTest {
|
2023-07-14 09:37:30 +00:00
|
|
|
inherit pkgs;
|
2023-02-21 16:19:39 +00:00
|
|
|
name = "complex";
|
2022-10-29 11:19:29 +00:00
|
|
|
disko-config = ../example/complex.nix;
|
2023-09-02 17:42:05 +00:00
|
|
|
extraInstallerConfig.networking.hostId = "8425e349";
|
2023-07-15 14:57:18 +00:00
|
|
|
extraSystemConfig = {
|
2023-09-02 11:57:52 +00:00
|
|
|
networking.hostId = "8425e349";
|
2022-09-30 10:55:28 +00:00
|
|
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
2023-09-02 16:20:39 +00:00
|
|
|
fileSystems."/zfs_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
2022-09-30 10:55:28 +00:00
|
|
|
};
|
2022-08-29 09:45:19 +00:00
|
|
|
extraTestScript = ''
|
|
|
|
machine.succeed("test -b /dev/md/raid1p1");
|
|
|
|
|
|
|
|
|
2022-09-30 10:55:28 +00:00
|
|
|
machine.succeed("mountpoint /zfs_fs");
|
|
|
|
machine.succeed("mountpoint /zfs_legacy_fs");
|
|
|
|
machine.succeed("mountpoint /ext4onzfs");
|
|
|
|
machine.succeed("mountpoint /ext4_on_lvm");
|
2023-11-11 03:29:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
machine.succeed("test -e /ext4_on_lvm/file-from-postMountHook");
|
2022-09-30 10:55:28 +00:00
|
|
|
'';
|
2023-07-15 14:57:18 +00:00
|
|
|
extraInstallerConfig = {
|
2022-08-29 09:45:19 +00:00
|
|
|
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
|
|
|
|
};
|
|
|
|
}
|