Skip to content

Commit

Permalink
configs/releng/profiledef.sh: use zstd compression for bootstrap image
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nl6720 committed Apr 19, 2024
1 parent 57ccf8e commit 924a97a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Added
Changed
-------

- Change releng profile's bootstrap tarball compression from gzip to zstd. zstd provides higher and faster compression.

Deprecated
----------

Expand Down
2 changes: 1 addition & 1 deletion configs/releng/profiledef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 924a97a

Please sign in to comment.