summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Abdo2019-10-28 11:22:48 +0100
committerThiago Abdo2019-10-28 11:22:48 +0100
commitb251d6167584a12ec3e2fab799a63595fa954186 (patch)
tree25063bc3541950d8bd6f44d2bf041e967fdc2dc7
parentGet rid of copying the image multiple times using qcow2 backing files, add ma... (diff)
downloadpacker-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--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 98afce4..0906aa6 100644
--- a/Makefile
+++ b/Makefile
@@ -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)