diff options
author | Thiago Abdo | 2019-10-28 11:22:48 +0100 |
---|---|---|
committer | Thiago Abdo | 2019-10-28 11:22:48 +0100 |
commit | b251d6167584a12ec3e2fab799a63595fa954186 (patch) | |
tree | 25063bc3541950d8bd6f44d2bf041e967fdc2dc7 | |
parent | Get rid of copying the image multiple times using qcow2 backing files, add ma... (diff) | |
download | packer-templates-b251d6167584a12ec3e2fab799a63595fa954186.tar.gz packer-templates-b251d6167584a12ec3e2fab799a63595fa954186.tar.xz packer-templates-b251d6167584a12ec3e2fab799a63595fa954186.zip |
Change compressing engine to virt-sparsify(better performance)
Signed-off-by: Thiago Abdo <tjabdo@inf.ufpr.br>
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -208,7 +208,7 @@ $(BOOTTARGETS) $(CURBOOTTARGETS): $(COMPRESSTARGETS): $(info ** Commiting and Compressing all changes to the image **) $(eval IMAGE_NAME := $(@D)/build/rootfs-image) - @qemu-img convert -p -f qcow2 -c $(IMAGE_NAME) -O qcow2 $(IMAGE_NAME).tmp + @virt-sparsify --compress --verbose $(IMAGE_NAME) $(IMAGE_NAME).tmp @rm -f $(IMAGE_NAME) @mv $(IMAGE_NAME).tmp $(IMAGE_NAME) |