mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
nixos/tests/luksroot: Switch to use waitForText.
Fixes the "blindly hope that 60 seconds is enough" issue from 1f34503
,
so that we now have a (hopefully) reliable way to wait for the
passphrase prompt.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
8bd025a75e
commit
77d7aa6742
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ in {
|
||||||
'';
|
'';
|
||||||
preBootCommands = ''
|
preBootCommands = ''
|
||||||
$machine->start;
|
$machine->start;
|
||||||
sleep 60; # XXX: Hopefully this is long enough :-/
|
$machine->waitForText(qr/Enter passphrase/);
|
||||||
$machine->sendChars("supersecret\n");
|
$machine->sendChars("supersecret\n");
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue