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.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/images/build-qcow-image.inc b/images/build-qcow-image.inc
deleted file mode 100644
index 1409edc..0000000
--- a/images/build-qcow-image.inc
+++ /dev/null
@@ -1,16 +0,0 @@
1IMAGE_TYPES += "ext4.qcow2"
2CONVERSIONTYPES += "qcow2"
3CONVERSION_DEPENDS_qcow2 = "qemu-native"
4CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2"
5
6IMAGE_FSTYPES += "ext4.qcow2"
7
8# To reduce storage size remove the intermediate images
9do_clean_unused_img() {
10 cd ${IMGDEPLOYDIR}
11 ln -sf ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2 ${IMAGE_LINK_NAME}.qcow2
12 rm -f ${IMGDEPLOYDIR}/*.ext4
13 cd -
14}
15
16addtask clean_unused_img after do_image_ext4 before do_image_complete