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