disko/tests/luks-lvm.nix

11 lines
304 B
Nix
Raw Normal View History

2022-08-25 21:12:49 +00:00
{ pkgs ? (import <nixpkgs> {})
, makeDiskoTest ? (pkgs.callPackage ./lib.nix {}).makeDiskoTest
}:
2022-08-25 21:12:49 +00:00
makeDiskoTest {
disko-config = import ../example/luks-lvm.nix;
2022-08-25 21:12:49 +00:00
extraTestScript = ''
machine.succeed("cryptsetup isLuks /dev/vdb2");
machine.succeed("grep -qs '/mnt/home' /proc/mounts");
'';
}