# which doesn't have the required KVM patches). Test repeatedly
# booting.
+set -e
+
+rm -f test1.img
dd if=/dev/zero of=test1.img bs=1024k count=500
n=20
+if [ -n "$1" ]; then n=$1; fi
export LIBGUESTFS_DEBUG=1
done
rm test1.img
+
+echo Test boot completed after $n iterations.