2022-08-26 08:41:58 +02:00
|
|
|
{ pkgs ? (import <nixpkgs> { })
|
|
|
|
|
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
2022-08-25 13:14:07 +02:00
|
|
|
}:
|
2022-08-25 23:12:49 +02:00
|
|
|
makeDiskoTest {
|
2023-02-21 11:19:39 -05:00
|
|
|
name = "luks-lvm";
|
2022-10-29 13:19:29 +02:00
|
|
|
disko-config = ../example/luks-lvm.nix;
|
2022-08-25 23:12:49 +02:00
|
|
|
extraTestScript = ''
|
2022-09-30 12:55:28 +02:00
|
|
|
machine.succeed("cryptsetup isLuks /dev/vda2");
|
|
|
|
|
machine.succeed("mountpoint /home");
|
|
|
|
|
'';
|
|
|
|
|
bootCommands = ''
|
2023-03-25 08:58:50 +01:00
|
|
|
machine.wait_for_console_text("vda")
|
|
|
|
|
machine.send_console("secretsecret\n")
|
2022-08-25 13:14:07 +02:00
|
|
|
'';
|
|
|
|
|
}
|