summaryrefslogtreecommitdiffstats
path: root/images/build-qcow-image.inc
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2017-08-30 15:45:02 +0200
committerAdrian Dudau <adrian.dudau@enea.com>2017-09-01 10:51:20 +0200
commit9528b94a291d648bb62f28826e2b946a229c8cb0 (patch)
treebadcab9e0ff1d1cad2ae1a74697ce1114bd610b8 /images/build-qcow-image.inc
downloadmeta-el-nfv-access-9528b94a291d648bb62f28826e2b946a229c8cb0.tar.gz
Initial commit
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
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