disko/tests/luks-lvm.nix
lassulus a3e511d3c8 tests: change passphrase to secretsecret
this is needed for zfs
2022-12-26 21:13:34 +01:00

15 lines
413 B
Nix

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