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