Use best XZ compression for smaller images and packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-10-17 15:23:26 +01:00
parent c061d66fca
commit 5fd54721c2
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ define PAK
tar xf /install/packages/package/files.tmp -C /install/packages/package/tmp/ \
-p --numeric-owner
rm -f /install/packages/package/files.tmp
cd /install/packages/package/tmp/ && XZ_OPT=-T0 tar -c -p --numeric-owner -J -f /install/packages/package/files.tar.xz *
cd /install/packages/package/tmp/ && XZ_OPT="-T0 --best" tar -c -p --numeric-owner -J -f /install/packages/package/files.tar.xz *
rm -r /install/packages/package/tmp
-cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp
mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES

View File

@@ -36,7 +36,7 @@ else
endif
# Enable multi-threaded compression for LZMA
export XZ_OPT = --threads=0
export XZ_OPT = --threads=0 --best
###############################################################################
# Top-level Rules