Skip to contentSkip to conversation

linux-cip: Disable module signing when performing reproduciblity test

PATCH New Jan Kiszka 1 participant 1 message Dec 15, 2025

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 linux-cip: Disable module signing when performing reproduciblity test

From: Jan Kiszka <[email protected]>

With the current cip config for x86 and 6.12, the kernel will generate a key pair for signing modules on the fly. This is inherently non-reproducible. Disable kernel module signing for now. It can re-enabled later on when Isar gained support for in-tree module signing with custom keys.

Closes #144
---
 kas/opt/reproducible.yml                         | 1 +
 recipes-kernel/linux/cip-kernel-config.inc       | 4 ++++
 recipes-kernel/linux/files/no-module-signing.cfg | 2 ++
 3 files changed, 7 insertions(+)
 create mode 100644 recipes-kernel/linux/files/no-module-signing.cfg
kas/opt/reproducible.yml +1 -0
index a14d59c2..ae611ebd 100644
@@ -15,3 +15,4 @@ local_conf_header:
   reproducible-builds: |
     WIC_DEPLOY_PARTITIONS = "1"
     ISAR_USE_APT_SNAPSHOT = "1"
+    NO_MODULE_SIGNING = "1"
recipes-kernel/linux/cip-kernel-config.inc +4 -0
index c4932d28..c69c0549 100644
@@ -28,3 +28,7 @@ KERNEL_DEFCONFIG ?= "${@ \
 KBUILD_DEPENDS:append = "${@ \
     ', lzop, lz4' \
     if bb.utils.to_boolean(d.getVar('USE_CIP_KERNEL_CONFIG')) else ''}"
+
+SRC_URI:append = " ${@ \
+    'file://no-module-signing.cfg' if bb.utils.to_boolean(d.getVar('NO_MODULE_SIGNING')) else '' \
+    }"
recipes-kernel/linux/files/no-module-signing.cfg new file +2 -0
new file mode 100644
index 00000000..ab54f685
@@ -0,0 +1,2 @@
+# CONFIG_SECURITY_LOCKDOWN_LSM is not set
+# CONFIG_MODULE_SIG is not set
Signature · 1 line
2.51.0