]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
feat(dracut): search for zstd compressor first
authorBenjamin Drung <benjamin.drung@canonical.com>
Thu, 20 Jun 2024 12:11:02 +0000 (14:11 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 20 Jun 2024 21:54:58 +0000 (17:54 -0400)
commit9663307ceb244ae6293e090f418f9888d6dff8bf
tree0f6537d741b9afb40f307f767bdf0a71d5d57d43
parenta9ea01755edb4a63518234b52c25e240b4c6e1d3
feat(dracut): search for zstd compressor first

Searching for an available compressor was introduced in commit
693b7a32833b ("Cleanup compressor handling") but the order was not
justified.

Ubuntu uses zstd for compressing the packages, the kernel modules,
firmware files, and the initrd (when using initramfs-tools). zstd has a
good compromise between compression ratio and speed. Therefore search
for zstd first.

Further readings:

 * https://lists.ubuntu.com/archives/ubuntu-devel/2021-December/041726.html
 * analysis.ipynb on https://github.com/waveform80/compression
dracut.sh