mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
dcb0c42857
This should make the code cleaner, more robust and errors should be clearer. we also changed the configuration format a bit.
20 lines
621 B
Nix
20 lines
621 B
Nix
{ pkgs ? (import <nixpkgs> { })
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
|
}:
|
|
makeDiskoTest {
|
|
disko-config = import ../example/complex.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("test -b /dev/zroot/zfs_testvolume");
|
|
machine.succeed("test -b /dev/md/raid1p1");
|
|
|
|
|
|
machine.succeed("mountpoint /mnt");
|
|
machine.succeed("mountpoint /mnt/zfs_fs");
|
|
machine.succeed("mountpoint /mnt/zfs_legacy_fs");
|
|
machine.succeed("mountpoint /mnt/ext4onzfs");
|
|
machine.succeed("mountpoint /mnt/ext4_on_lvm");
|
|
'';
|
|
extraConfig = {
|
|
boot.kernelModules = [ "dm-raid" "dm-mirror" ];
|
|
};
|
|
}
|