diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 14:54:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 14:54:02 -0300 |
commit | 0edde7755d484e874659d74691d304005faa884f (patch) | |
tree | 33731bb92c836a5c3d5e78a4add3665eabafd1d6 | |
parent | 820f12fe0394c2aef8ff5ecbd733f525ef22362a (diff) | |
download | kvmx-0edde7755d484e874659d74691d304005faa884f.tar.gz kvmx-0edde7755d484e874659d74691d304005faa884f.tar.bz2 |
Better way to wait for the machine to boot
-rwxr-xr-x | kvmx | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -115,8 +115,12 @@ function kvmx_up { kvmx_spice fi - echo "Waiting for machine to boot..." - sleep 5 + echo -n "Waiting for machine to boot..." + while true; do + echo true | $SSH_COMMAND -o ConnectTimeout=2 -p $SSH $SSH_LOGIN@127.0.0.1 &> /dev/null && break + echo -n "." + done + echo " done." # Somehow it is starting before DBUS and then crashing, so we try to start again echo "Ensure spice-vdagent is running..." |