2022-10-29 14:19:29 +03:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
2023-07-14 12:37:30 +03:00
|
|
|
, makeDiskoTest ? (pkgs.callPackage ../lib { }).testLib.makeDiskoTest
|
2022-10-29 14:19:29 +03:00
|
|
|
}:
|
|
|
|
makeDiskoTest {
|
2023-07-14 12:37:30 +03:00
|
|
|
inherit pkgs;
|
2023-02-21 19:19:39 +03:00
|
|
|
name = "cli";
|
2022-10-29 14:19:29 +03:00
|
|
|
disko-config = ../example/complex.nix;
|
2023-07-15 17:57:18 +03:00
|
|
|
extraSystemConfig = {
|
2022-10-29 14:19:29 +03:00
|
|
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
|
|
|
};
|
|
|
|
testMode = "cli";
|
|
|
|
extraTestScript = ''
|
|
|
|
machine.succeed("test -b /dev/zroot/zfs_testvolume");
|
|
|
|
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");
|
|
|
|
'';
|
2023-07-15 17:57:18 +03:00
|
|
|
extraInstallerConfig = {
|
2022-10-29 14:19:29 +03:00
|
|
|
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
|
|
|
|
};
|
|
|
|
}
|