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:
aszlig
2015-05-21 19:55:21 +02:00
parent 8bd025a75e
commit 77d7aa6742
+1 -1
View File
@@ -366,7 +366,7 @@ in {
'';
preBootCommands = ''
$machine->start;
sleep 60; # XXX: Hopefully this is long enough :-/
$machine->waitForText(qr/Enter passphrase/);
$machine->sendChars("supersecret\n");
'';
};