From 9528b94a291d648bb62f28826e2b946a229c8cb0 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Wed, 30 Aug 2017 15:45:02 +0200 Subject: Initial commit Signed-off-by: Adrian Dudau --- images/build-qcow-image.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 images/build-qcow-image.inc (limited to 'images/build-qcow-image.inc') 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 @@ +inherit image-vm +IMAGE_FSTYPES += "qcow2" + +# To reduce storage size remove the intermediate images +do_clean_unused_img() { + rm ${IMGDEPLOYDIR}/*.hdddirect + rm ${IMGDEPLOYDIR}/*.ext4 +} + +addtask clean_unused_img after do_vmimg before do_image_complete -- cgit v1.2.3-54-g00ecf