diff options
Diffstat (limited to 'images/build-qcow-image.inc')
-rw-r--r-- | images/build-qcow-image.inc | 10 |
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 @@ | |||
1 | inherit image-vm | ||
2 | IMAGE_FSTYPES += "qcow2" | ||
3 | |||
4 | # To reduce storage size remove the intermediate images | ||
5 | do_clean_unused_img() { | ||
6 | rm ${IMGDEPLOYDIR}/*.hdddirect | ||
7 | rm ${IMGDEPLOYDIR}/*.ext4 | ||
8 | } | ||
9 | |||
10 | addtask clean_unused_img after do_vmimg before do_image_complete | ||