aboutsummaryrefslogtreecommitdiff
path: root/leg-cloud-image
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-07-26 16:40:52 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-07-26 16:45:54 +0200
commit30d4e9c1138226a74b7dd2603357a9a7240b4672 (patch)
tree216e57133595ee2c5f6930c94c41fdb231aa06a6 /leg-cloud-image
parent0330951818b8a08b1890564cd760d29f184d5686 (diff)
downloadconfigs-30d4e9c1138226a74b7dd2603357a9a7240b4672.tar.gz
leg-cloud-image-debian: fetch resulting image from host - #3164
Change-Id: If94cb60064fb69228c4927916f9974460469112b
Diffstat (limited to 'leg-cloud-image')
-rwxr-xr-xleg-cloud-image/debian/builders.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/leg-cloud-image/debian/builders.sh b/leg-cloud-image/debian/builders.sh
index 27039cabd..93fac4abc 100755
--- a/leg-cloud-image/debian/builders.sh
+++ b/leg-cloud-image/debian/builders.sh
@@ -62,8 +62,12 @@ sudo virsh net-list --all
mkdir out
mv preseed.cfg out/debian-jessie-arm64-preseed.cfg
-# virsh vol-download is slow - copy from a mounted volume
-sudo cp -a /var/lib/libvirt/images/${image_name}.qcow2 .
+
+# https://bugs.linaro.org/show_bug.cgi?id=3164
+#sudo cp -a /var/lib/libvirt/images/${image_name}.qcow2 .
+
+virsh vol-download --pool default --vol ${image_name}.qcow2 --file ${image_name}.qcow2
+
# extract kernel and initramfs from image
sudo qemu-nbd --connect=/dev/nbd0 ${image_name}.qcow2
for device in $(sudo kpartx -avs /dev/nbd0 | cut -d' ' -f3); do