]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
UBUNTU: [Packaging] use default zstd compression
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Mon, 7 Feb 2022 14:20:58 +0000 (14:20 +0000)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 11 Feb 2022 10:56:47 +0000 (11:56 +0100)
commitd7b9ec4e719b9461f5800a5167869816ea14b09b
tree048d7dae8df23999509442ccd092ec9ee850d4ca
parent435d17955519d786c7ca887f13a0679dfb807432
UBUNTU: [Packaging] use default zstd compression

Revert "UBUNTU: [Packaging] enforce xz compression for debs"

This reverts commit 45da4d72dea537910d970211ff8c345f4f9a2775.

The previous commit incorrectly stated that jammy dpkg default has
switched from xz to zstd. This change was done late in impish
cycle. [1] It also incorrectly states that there are no evident benefits
for the kernel packages to use zstd.

It is correct that zstd compression may require more
resources. However, the decompression speed and decompression memory
requirements are a lot faster. The choice to switch from xz to zstd by
default in Ubuntu was done to speed up installation and upgrade of all
packages, at the expense of slightly larger download sizes.

If we do want to futher optimize compression methods it should
probably be done on per subpackage type. For example, linux-image-ABI
already contains compressed kernel image and not much else, we can
choose to not compress that deb at all with compression method
none. Debug symbols are usually rarely installed, thus it might make
sense to keep them small and thus choose compress ddebs with
xz. However modules and tools should remain compressed with zstd.

[1] https://launchpad.net/ubuntu/+source/dpkg/1.20.9ubuntu2

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
debian/rules.d/2-binary-arch.mk
debian/rules.d/3-binary-indep.mk