diff options
Diffstat (limited to 'images/build-qcow-image.inc')
-rw-r--r-- | images/build-qcow-image.inc | 16 |
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 @@ | |||
1 | IMAGE_TYPES += "ext4.qcow2" | ||
2 | CONVERSIONTYPES += "qcow2" | ||
3 | CONVERSION_DEPENDS_qcow2 = "qemu-native" | ||
4 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2" | ||
5 | |||
6 | IMAGE_FSTYPES += "ext4.qcow2" | ||
7 | |||
8 | # To reduce storage size remove the intermediate images | ||
9 | do_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 | |||
16 | addtask clean_unused_img after do_image_ext4 before do_image_complete | ||