Subject: [PATCH 4/6] d/rules: strip modules in the -di udeb

From: Igor Krpanic <[email-masked]>
Date: Sun, 9 Aug 2026 13:18:00 +0200

zfs.ko was shipped with debug info, about 107 MB unpacked. Stripping
brings the udeb from 17 MB to under 2 MB.

Signed-off-by: Igor Krpanic <[email-masked]>
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index b71cd535..a827ddec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -244,6 +244,7 @@ override_dh_binary-modules-udeb: override_dh_prep-deb-files override_dh_configur
 
 	dh_installdirs -p${pmodules}-di
 	dh_install -p${pmodules}-di
+	strip --strip-debug debian/${pmodules}-di/lib/modules/$(KVERS)/extra/*/*.ko
 	dh_gencontrol -p${pmodules}-di
 
 	dh_builddeb -p${pmodules}-di
-- 
2.47.3