Skip to content

Commit

Permalink
scripts/rsync-generation/mksnapshot: disable all but bz2 snapshots
Browse files Browse the repository at this point in the history
who am I kidding, the bootstrap and the mirror retaining is all
hardwired to bz2, and other compression formats don't really make a big
enough dent to warrant lots of changes to allow picking a different
compresion format

disable all but bz2, that's the only thing we use afterall

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
  • Loading branch information
grobian committed Mar 31, 2024
1 parent 9edffa4 commit f6acc1e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/rsync-generation/mksnapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ popd > /dev/null || exit 1

rm -Rf "${TMPDIR}"

# The differences in size (57/52/47MB) for bz2,zstd,lz are not really that
# big considering gzip's size (75MB) but the bootstrap-prefix script and
# the logic above rely on .bz2 snapshot, so in reality no other format
# than bzip2-compressed is necessary. Since bzip2 is available
# everywhere, or bootstrapped just fine for a long long time, stick with
# it, for it is good enough for its purpose here
COMPRS=(
"bz2:bzip2 -c -9"
"lz:lzip -c -9"
"zst:zstd -c -19"
# "lz:lzip -c -9"
# "zst:zstd -c -19"
)

# produce compressed variants, use as much cpu as left on the system, do
Expand Down

0 comments on commit f6acc1e

Please sign in to comment.