From 4f76b7f559fc1a54e35b6f4185e609db83964248 Mon Sep 17 00:00:00 2001 From: Umer Saleem Date: Wed, 7 Feb 2024 18:23:19 +0500 Subject: [PATCH] Disable kernel modules compression Debian has defaulted to compressing the modules in XZ format. This introduces some changes that are not desired. The debug info/symbols for modules are not stripped anymore. As a result, the size of modules increases ten folds. Previosuly, the debug symbols for modules and kernel were packaged separately in a -dbg package. But after this config update, -dbg package only contains symbols for kernel binary itself. Kernel modules have in built debug symbols. The size of ISO image increses 3-4 times because of this. Revert to preveious state for this config. Signed-off-by: Umer Saleem --- scripts/package/truenas/truenas.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/package/truenas/truenas.config b/scripts/package/truenas/truenas.config index f64838f4ee51..8e6ec820e43b 100644 --- a/scripts/package/truenas/truenas.config +++ b/scripts/package/truenas/truenas.config @@ -129,3 +129,17 @@ CONFIG_SOUNDWIRE=n # without VLAN Tag on DCB Link # CONFIG_CHELSIO_T4_DCB=n + +# +# Debian has defaulted to compressing the modules in XZ format. This +# introduces some changes that are not desired. The debug info/symbols +# for modules are not stripped anymore. As a result, the size of modules +# increases ten folds. Previosuly, the debug symbols for modules and +# kernel were packaged separately in a -dbg package. But after this +# config update, -dbg package only contains symbols for kernel binary +# itself. Kernel modules have in built debug symbols. The size of ISO +# image increses 3-4 times because of this. Revert to preveious state +# for this config. +# +CONFIG_MODULE_COMPRESS_NONE=y +CONFIG_MODULE_COMPRESS_XZ=n