From b9a4e39150a31ca7e12322a344eb7b5222f42d55 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Mon, 19 Jan 2015 16:03:33 +0200 Subject: sleep before mount Calling mount immediately after qemu-nbd seems racy, sometimes mount will fail. 2 sec should be enough. This has caused some spurious failures in kvm results. Change-Id: I6991825bd3f23546a571558578f90284ec57c38f Signed-off-by: Riku Voipio --- common/scripts/kvm/test-kvm.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common') diff --git a/common/scripts/kvm/test-kvm.sh b/common/scripts/kvm/test-kvm.sh index ba3dd6f..cd322ed 100755 --- a/common/scripts/kvm/test-kvm.sh +++ b/common/scripts/kvm/test-kvm.sh @@ -85,6 +85,7 @@ if [ ! -r kvm.qcow2 ]; then fi qemu-nbd -c /dev/nbd0 kvm.qcow2 +sleep 2 mount /dev/nbd0p2 /mnt/ cp common/scripts/kvm/kvm-lava.conf /mnt/etc/init/kvm-lava.conf @@ -158,6 +159,7 @@ case ${ARCH} in esac qemu-nbd -c /dev/nbd0 kvm.qcow2 +sleep 2 mount /dev/nbd0p2 /mnt/ if ! grep -q "kvm-boot-1:" /mnt/root/guest.log -- cgit v1.2.3