mirror of
https://github.com/nix-community/disko
synced 2024-11-10 14:24:27 +00:00
15 lines
407 B
Nix
15 lines
407 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, diskoLib ? pkgs.callPackage ../lib { }
|
|
}:
|
|
diskoLib.testLib.makeDiskoTest {
|
|
inherit pkgs;
|
|
name = "luks-interactive-login";
|
|
disko-config = ../example/luks-interactive-login.nix;
|
|
extraTestScript = ''
|
|
machine.succeed("cryptsetup isLuks /dev/vda2");
|
|
'';
|
|
bootCommands = ''
|
|
machine.wait_for_console_text("vda")
|
|
machine.send_console("secretsecret\n")
|
|
'';
|
|
}
|