2022-08-26 09:41:58 +03:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
|
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
2022-08-25 14:14:07 +03:00
|
|
|
}:
|
2022-08-26 00:12:49 +03:00
|
|
|
makeDiskoTest {
|
2022-10-29 14:19:29 +03:00
|
|
|
disko-config = ../example/luks-lvm.nix;
|
2022-08-26 00:12:49 +03:00
|
|
|
extraTestScript = ''
|
2022-09-30 13:55:28 +03:00
|
|
|
machine.succeed("cryptsetup isLuks /dev/vda2");
|
|
|
|
machine.succeed("mountpoint /home");
|
|
|
|
'';
|
|
|
|
enableOCR = true;
|
|
|
|
bootCommands = ''
|
|
|
|
machine.wait_for_text("Passphrase for")
|
2022-12-26 19:43:39 +03:00
|
|
|
machine.send_chars("secretsecret\n")
|
2022-08-25 14:14:07 +03:00
|
|
|
'';
|
|
|
|
}
|