diff --git a/helpers/DATA/linux-hwe-6.8/udeb/001-disable_zstd_module_compression.patch b/helpers/DATA/linux-hwe-6.8/udeb/001-disable_zstd_module_compression.patch index 0722b73..0d4bb0b 100644 --- a/helpers/DATA/linux-hwe-6.8/udeb/001-disable_zstd_module_compression.patch +++ b/helpers/DATA/linux-hwe-6.8/udeb/001-disable_zstd_module_compression.patch @@ -1,15 +1,20 @@ -diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk_ -index bc873563..d6692ca1 100644 +Debian doesn't use zstd compression for kernel modules by default, and +kernel-wedge does not currently support this compression. It is recommended +to continue using XZ compression to maintain compatibility with udeb +packages in Trisquel, at least while this changes. + +diff --git a/debian/rules.d/0-common-vars.mk b/debian/rules.d/0-common-vars.mk +index d832106b..4afdd290 100644 --- a/debian/rules.d/0-common-vars.mk -+++ b/debian/rules.d/0-common-vars.mk_ -@@ -197,8 +197,9 @@ do_dtbs=false - do_fips_checks=false - - # ZSTD compressed kernel modules -+ifeq ($(filter $(series),jammy aramo),) - do_zstd_ko=true --ifeq ($(series),jammy) -+else ++++ b/debian/rules.d/0-common-vars.mk +@@ -154,6 +154,10 @@ do_zstd_ko=true + ifeq ($(series),jammy) do_zstd_ko= endif ++# Trisquel use udebs, so it disable zstd by default. ++ifeq (yes,$(shell dpkg-vendor --is Trisquel && echo yes)) ++do_zstd_ko= ++endif + # Support parallel= in DEB_BUILD_OPTIONS (see #209008) + #