From 924a97aeb1a5ed03529aa766f579a145ae67261a Mon Sep 17 00:00:00 2001 From: nl6720 Date: Thu, 11 Apr 2024 16:13:30 +0300 Subject: configs/releng/profiledef.sh: use zstd compression for bootstrap image The zstd tool has now been around for a while, so the availability of it should not be a concern anymore. Unlike gzip which was used until now, zstd offers higher compression while still being faster (and multi-threaded). The `--auto-threads=logical` option is used just so that there is some difference between the releng and baseline profiles. Everyone using the official Arch Linux bootstrap tarball (previously `archlinux-bootstrap-YYYY.MM.DD-x86_64.tar.gz` or `archlinux-bootstrap-x86_64.tar.gz`) will need to update their scripts and etc. to use `archlinux-bootstrap-YYYY.MM.DD-x86_64.tar.zst` or `archlinux-bootstrap-x86_64.tar.zst` instead. Implements https://gitlab.archlinux.org/archlinux/archiso/-/issues/130 --- CHANGELOG.rst | 2 ++ configs/releng/profiledef.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 388cba3..0592b94 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,8 @@ Added Changed ------- +- Change releng profile's bootstrap tarball compression from gzip to zstd. zstd provides higher and faster compression. + Deprecated ---------- diff --git a/configs/releng/profiledef.sh b/configs/releng/profiledef.sh index 4603210..06e488d 100644 --- a/configs/releng/profiledef.sh +++ b/configs/releng/profiledef.sh @@ -15,7 +15,7 @@ arch="x86_64" pacman_conf="pacman.conf" airootfs_image_type="squashfs" airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M') -bootstrap_tarball_compression=(gzip -cn9) +bootstrap_tarball_compression=('zstd' '-c' '-T0' '--auto-threads=logical' '--long' '-19') file_permissions=( ["/etc/shadow"]="0:0:400" ["/root"]="0:0:750" -- cgit v1.2.3-54-g00ecf