From bebe107f52af6ce373301a80fbbbc3020018399f Mon Sep 17 00:00:00 2001 From: Aelin Date: Sat, 7 Feb 2026 16:46:40 +0100 Subject: [PATCH] kconfigcheck: Only require zstd module (de)compression on 6.2 or newer The in-kernel zstd module decompression exists since kernel 6.2 [1], so in order to accomodate split initramfs devices, we can only safely require zstd module compression and decompression on 6.2 or newer. [1]: https://github.com/torvalds/linux/commit/169a58ad824d896b9e291a27193342616e651b82 Part-of: --- kconfigcheck.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kconfigcheck.toml b/kconfigcheck.toml index 6a8c5930c..591532412 100644 --- a/kconfigcheck.toml +++ b/kconfigcheck.toml @@ -85,10 +85,13 @@ LBDAF = "y" # Provide a proper dummy null console to improve compatibility # on devices that like to coerce console=null NULL_TTY = "m" -["category:default".">=5.13.0"."all"] +["category:default".">=6.2.0"."all"] +# MODULE_COMPRESS_ZSTD exists since 5.13, but since kernels prior to 6.2 cannot +# decompress it, we would break devices with split initramfs which use busybox +# modprobe, so we only enforce it on 6.2 or newer MODULE_COMPRESS = "y" MODULE_COMPRESS_ZSTD = "y" -["category:default".">=5.17.0"."all"] +# MODULE_DECOMPRESS exists since 5.17, but can only decompress zstd since 6.2 MODULE_DECOMPRESS = "y" ["category:default".">=5.19.0"."all"] FW_LOADER_COMPRESS = "y"