diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2017-08-30 15:45:02 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2017-09-01 10:51:20 +0200 |
commit | 9528b94a291d648bb62f28826e2b946a229c8cb0 (patch) | |
tree | badcab9e0ff1d1cad2ae1a74697ce1114bd610b8 /images/build-qcow-image.inc | |
download | meta-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.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 | ||