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
|
@ -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…
Reference in a new issue