disko/tests/luks-lvm.nix

16 lines
413 B
Nix
Raw Normal View History

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