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-15 12:42:51 +00:00
committed by Jonas Nick
parent ccba86a0f0
commit 908af3bfb8
3 changed files with 31 additions and 9 deletions
+3 -1
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
}