variable squashfs compression level

This commit is contained in:
jalr 2018-03-21 20:59:19 +01:00
parent f4e39467bd
commit 5e9e6e0895
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,8 @@ DOCKER_IMAGE ?= labsync-builder
CWD=$(abspath $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST))))))
COMPRESSION_LEVEL ?= 5
qemu_ifname_br = brlabsync
qemu_ifname_tap = taplabsync
qemu_hostname = qemumachine
@ -52,6 +54,7 @@ images/debian-stretch.squashfs: images
-e "group=`id -g`" \
-e "ANNOUNCE=$(ANNOUNCE)" \
-e "WEBSEED=$(WEBSEED)" \
-e "COMPRESSION_LEVEL=$(COMPRESSION_LEVEL)" \
$(ci_environment) \
"$(DOCKER_IMAGE)" \
debian-stretch

View file

@ -58,7 +58,7 @@ run_packer() {
mksquashfs build/rootfs "/images/$SQUASHFS_FILE" \
-comp lzo \
-Xcompression-level 9
-Xcompression-level $COMPRESSION_LEVEL
rm -rf build