disko/tests/luks-lvm.nix

16 lines
414 B
Nix
Raw Normal View History

{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
2022-08-26 00:12:49 +03:00
makeDiskoTest {
disko-config = import ../example/luks-lvm.nix;
2022-08-26 00:12:49 +03:00
extraTestScript = ''
machine.succeed("cryptsetup isLuks /dev/vda2");
machine.succeed("mountpoint /home");
'';
enableOCR = true;
bootCommands = ''
machine.wait_for_text("Passphrase for")
machine.send_chars("secret\n")
'';
}