examples/deploy-qemu-vm: show progress when waiting

This improves the user experience on VM startup, which can take a few
seconds.
This commit is contained in:
Erik Arvstedt 2021-03-08 15:11:16 +01:00 committed by Jonas Nick
parent ccba86a0f0
commit 908af3bfb8
No known key found for this signature in database
GPG key ID: 4861DBF262123605
3 changed files with 31 additions and 9 deletions

View file

@ -1,5 +1,7 @@
qemuDir=$(cd "${BASH_SOURCE[0]%/*}" && pwd)
source "$qemuDir/wait-until.sh"
tmpDir=/tmp/nix-bitcoin-qemu-vm
mkdir -p $tmpDir
@ -31,7 +33,7 @@ runVM() {
vmWaitForSSH() {
echo
printf "Waiting for SSH connection..."
while ! c : 2>/dev/null; do :; done
waitUntil "c : 2>/dev/null" 500
echo
}