mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
16 lines
407 B
Nix
16 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")
|
|
'';
|
|
}
|