diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 16:35:06 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-06-17 16:35:06 +0300 |
commit | 5861e673f129a21e207e3a6a0068e3d3d09cd81e (patch) | |
tree | fd2b00786c711e0d806590d99e51f7c07dcc1510 | |
parent | 88414d86eaa504cdc4621767a370d568052f9c83 (diff) |
leg-cloud-image-centos: wait for image to be completed
Change-Id: I6fa98751eaa080bf75ce188a7574f436d836a7db
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r-- | leg-cloud-image-centos.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/leg-cloud-image-centos.yaml b/leg-cloud-image-centos.yaml index 74062259cf..01a3f80af9 100644 --- a/leg-cloud-image-centos.yaml +++ b/leg-cloud-image-centos.yaml @@ -73,6 +73,12 @@ --location http://mirror.centos.org/altarch/7/os/aarch64/ \ --noreboot + while [ true ]; do + sleep 1 + vm_running=$(sudo virsh list --name --state-running | grep "^${IMAGE_NAME}" | wc -l) + [ "${vm_running}" -eq "0" ] && break + done + sudo virsh list --all sudo virsh pool-list --all sudo virsh net-list --all |