2023-07-28 12:04:18 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { }
|
|
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
2023-07-27 14:21:07 +00:00
|
|
|
}:
|
2023-07-28 12:04:18 +00:00
|
|
|
diskoLib.testLib.makeDiskoTest {
|
2023-07-27 14:21:07 +00:00
|
|
|
inherit pkgs;
|
|
|
|
name = "luks-btrfs-subvolumes";
|
|
|
|
disko-config = ../example/luks-btrfs-subvolumes.nix;
|
|
|
|
extraTestScript = ''
|
2023-08-11 06:11:01 +00:00
|
|
|
machine.succeed("cryptsetup isLuks /dev/vda2");
|
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path nix$'");
|
|
|
|
machine.succeed("btrfs subvolume list / | grep -qs 'path home$'");
|
2023-09-12 21:03:16 +00:00
|
|
|
machine.succeed("test -e /.swapvol/swapfile");
|
2023-07-27 14:21:07 +00:00
|
|
|
'';
|
|
|
|
}
|