Skip to content

Commit b84e90b

Browse files
author
Herton R. Krzesinski
committed
redhat: change compression flags for xz
JIRA: https://issues.redhat.com/browse/RHEL-79278 Upstream Status: git@gitlab.com:cki-project/kernel-ark.git commit b1b87d55b54179a7ead27bc3b1b3047f55a56ab7 Author: Herton R. Krzesinski <herton@redhat.com> Date: Tue Feb 18 10:51:18 2025 -0300 redhat: change compression flags for xz The macro compression_flags is used in the compression of kernel modules. The default xz integrity check used is crc64. In the next change, we will switch to in-kernel decompression of modules. The problem is that it doesn't have support for the crc64 check, so we must manually switch to crc32. While at it, also add --lzma2=dict=1MiB which is also used by the kernel at scripts/Makefile.modinst and in general follows recommendation/dictionary sizes explained in the kernel documentation at Documentation/staging/xz.rst. Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
1 parent 6f97af7 commit b84e90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redhat/kernel.spec.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Summary: The Linux kernel
120120

121121
# Default compression algorithm
122122
%global compression xz
123-
%global compression_flags --compress
123+
%global compression_flags --compress --check=crc32 --lzma2=dict=1MiB
124124
%global compext xz
125125

126126
%if 0%{?fedora}

0 commit comments

Comments
 (0)