summaryrefslogtreecommitdiffstats
path: root/images/build-qcow-image.inc
diff options
context:
space:
mode:
Diffstat (limited to 'images/build-qcow-image.inc')
-rw-r--r--images/build-qcow-image.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/images/build-qcow-image.inc b/images/build-qcow-image.inc
new file mode 100644
index 0000000..deace60
--- /dev/null
+++ b/images/build-qcow-image.inc
@@ -0,0 +1,10 @@
1inherit image-vm
2IMAGE_FSTYPES += "qcow2"
3
4# To reduce storage size remove the intermediate images
5do_clean_unused_img() {
6 rm ${IMGDEPLOYDIR}/*.hdddirect
7 rm ${IMGDEPLOYDIR}/*.ext4
8}
9
10addtask clean_unused_img after do_vmimg before do_image_complete