[packages/kernel] align kmod_compress_cmd with current kernel
atler
atler at pld-linux.org
Fri May 2 20:58:31 CEST 2025
commit 4e30664331d152c71d4fdbd14662ee20f6188dc9
Author: Jan Palus <atler at pld-linux.org>
Date: Fri May 2 19:28:47 2025 +0200
align kmod_compress_cmd with current kernel
even though it's unused with MODULE_COMPRESS_XZ=y
kernel's embedded xz decompressor does not support xz's default crc64
checksum algorithm so it needs to be explicitly set to either crc32 or
none. otherwise module is not recognized if decompression happens in
kernel (available since kernel >= 6.4 + kmod >= 31)
see:
https://www.kernel.org/doc/html/v6.14/staging/xz.html
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fbf5892df21a8ccfcb2fda0fd65bc3169c89ed28
kernel.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/kernel.spec b/kernel.spec
index 5d3a3092..8f578058 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -269,7 +269,7 @@ ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32 alpha %{arm}
ExclusiveOS: Linux
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define kmod_compress_cmd %{__xz}
+%define kmod_compress_cmd %{__xz} --check=crc32 --lzma2=dict=1MiB
%ifarch %{ix86} %{x8664} x32
%define target_arch_dir x86
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/4e30664331d152c71d4fdbd14662ee20f6188dc9
More information about the pld-cvs-commit
mailing list