summaryrefslogtreecommitdiffstats
path: root/tests/luks-lvm.nix
blob: 1a3dc662bb6437eeeb2ed13872566238d998ecd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
  disko-config = import ../example/luks-lvm.nix;
  extraTestScript = ''
    machine.succeed("cryptsetup isLuks /dev/vda2");
    machine.succeed("mountpoint /home");
  '';
  enableOCR = true;
  bootCommands = ''
    machine.wait_for_text("Passphrase for")
    machine.send_chars("secret\n")
  '';
}