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:
parent
ccba86a0f0
commit
908af3bfb8
3 changed files with 31 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue