mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
xz: Performance and compression tuning (V2) - fine tuning
Changes since V1: - Tuned some more 'tar'-command lines - Included 'lfs/core-updates' - Some fine-tuning Hi, Current results with V2 (clean builds): 'next': 'packages' => 255 MB 'ipfire-2.19.2gb-ext4.i586-full-core121.img.gz => 319 MB 'ipfire-2.19.i586-full-core121.iso' => 218 MB Total => 792 MB 'xz-tuning': 'packages' => 228 MB 'ipfire-2.19.2gb-ext4.i586-full-core121.img.gz' => 318 MB 'ipfire-2.19.i586-full-core121.iso' => 207 MB Total => 753 MB (-39 MB) It would be nice if someone could review and test these. ;-) If necessary, I can upload a complete patch. Best, Matthias Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
0d7a6f03d4
commit
27267889aa
@@ -26,8 +26,9 @@ include Config
|
||||
|
||||
VER = ipfire
|
||||
|
||||
THISAPP = core-updates
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
THISAPP = core-updates
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
TAR_OPTIONS = --xz
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
@@ -78,7 +79,7 @@ core/%:
|
||||
mv -f /tmp/ROOTFILES /install/packages/package/ROOTFILES
|
||||
tar -p --numeric-owner -x -C /tmp -f /$(SNAME).tar
|
||||
rm -f /$(SNAME).tar
|
||||
cd /tmp && tar cJf /install/packages/package/files.tar.xz * && rm -rf *
|
||||
cd /tmp && XZ_OPT="$(XZ_OPT)" tar cJf /install/packages/package/files.tar.xz $(TAR_OPTIONS) * && rm -rf *
|
||||
cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp
|
||||
rm /install/packages/package/ROOTFILES
|
||||
mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES
|
||||
@@ -89,7 +90,7 @@ core/%:
|
||||
#Change xxxKVERxxx to Kernelversion
|
||||
sed -e "s/xxxKVERxxx/$(KVER)/g" -i /install/packages/package/update.sh
|
||||
|
||||
cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \
|
||||
cd /install/packages/package && XZ_OPT="$(XZ_OPT)" tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire $(TAR_OPTIONS) \
|
||||
update.sh files.tar.xz ROOTFILES
|
||||
rm -rf /install/packages/package
|
||||
sed -e "s/NAME/core-upgrade/g" \
|
||||
|
||||
Reference in New Issue
Block a user