]> git.ozlabs.org Git - petitboot/commit
pb-sos: effectively compress the pb-sos file with gzip v1.5.0
authorGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Tue, 11 Jul 2017 18:04:05 +0000 (15:04 -0300)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 12 Jul 2017 04:47:06 +0000 (14:47 +1000)
commit3fc71b6422efdeb093ca6693553c0c31758a68d1
treead64131e3f9906ffb314f6c8ea271cc10794c8bf
parent135dc3721e847661d32b180d978c8e0def7afc86
pb-sos: effectively compress the pb-sos file with gzip

Currently the pb-sos tool creates a TAR file with logs, but without
compressing it using gzip, for example. Even the output of command
says "Compressing...", but in fact no compression is done.

This patch uses gzip to effectively compress the logs. It achieves
83% of compression, observed after a simple experiment.
Also, makes use of $tarflags variable instead of pass the flags
directly in the command call.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
utils/pb-sos