Commit a41b5227 authored by Antonio Terceiro's avatar Antonio Terceiro

backends/qemu: use autopkgtest-build-qemu to build images

vmdebootstrap is not going to be in buster.
parent 442ae492
......@@ -19,23 +19,7 @@ fi
mkdir -p "$image_dir"
mirror="${debci_mirror:-http://deb.debian.org/debian}"
customize_script="$(dirname "$0")/customize.sh"
vmdebootstrap \
--verbose \
--serial-console \
--distribution="$debci_suite" \
--arch="$debci_arch" \
--customize="$customize_script" \
--user=autopkgtest/autopkgtest \
--size=10000000000 \
--grub \
--log="$image".log \
--image="$image".raw
qemu-img convert -O qcow2 "$image".raw "$image".new
rm -f "$image".raw
# replace a potentially existing image as atomically as possible
mv "$image".new "$image"
autopkgtest-build-qemu "$debci_suite" "$image" "$mirror" "$debci_arch" "$customize_script"
......@@ -6,8 +6,6 @@ base=$(readlink -f $(dirname $(readlink -f $0))/../..)
. $base/lib/environment.sh
prepare_args
/usr/share/autopkgtest/setup-commands/setup-testbed "$@"
rootfs="$1"
# determine whether it's Debian or Ubuntu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment