aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx8
1 files changed, 6 insertions, 2 deletions
diff --git a/kvmx b/kvmx
index 1dd0302..e1016da 100755
--- a/kvmx
+++ b/kvmx
@@ -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..."