summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-03-31 12:24:42 +0200
committerFabian Groffen <grobian@gentoo.org>2024-03-31 12:24:42 +0200
commitf6acc1e57a57e74b0424973a5c79d07feeb74eee (patch)
tree55e38c8f053f5b59b93e4f6c4111852efb2ec9f9 /scripts
parentscripts/rsync-generation/mksnapshot: xz can read lzip archives, so drop xz (diff)
downloadprefix-f6acc1e57a57e74b0424973a5c79d07feeb74eee.tar.gz
prefix-f6acc1e57a57e74b0424973a5c79d07feeb74eee.tar.bz2
prefix-f6acc1e57a57e74b0424973a5c79d07feeb74eee.zip
scripts/rsync-generation/mksnapshot: disable all but bz2 snapshots
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rsync-generation/mksnapshot.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/rsync-generation/mksnapshot.sh b/scripts/rsync-generation/mksnapshot.sh
index 5b8776b45e..4d45ef2727 100755
--- a/scripts/rsync-generation/mksnapshot.sh
+++ b/scripts/rsync-generation/mksnapshot.sh
@@ -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