Closed evelikov closed 1 month ago
@xnox is this of interest to the Canonical/Ubuntu team? I don't mind having a look myself, if anyone can point me to a the git repo/branch used to produce the jammy/azure variant.
Alternatively we can drop Ubuntu from the CI, although I'd rather have that as last resort.
The Makefile.modinst
file was modified in Ubuntu.
--- linux-azure-6.5.0.orig/scripts/Makefile.modinst
+++ linux-azure-6.5.0/scripts/Makefile.modinst
@@ -24,7 +24,9 @@
suffix-y :=
suffix-$(CONFIG_MODULE_COMPRESS_GZIP) := .gz
suffix-$(CONFIG_MODULE_COMPRESS_XZ) := .xz
-suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst
+## UBUNTU: Support, but do not require zstd compressed modules
+# Many external dkms and signing rely on uncompressed modules
+# suffix-$(CONFIG_MODULE_COMPRESS_ZSTD) := .zst
modules := $(patsubst $(extmod_prefix)%.o, $(dst)/%.ko$(suffix-y), $(modules))
FYI:
It looks like only Ubuntu 22.04 (Jammy) with kernel version 6.5 or later will have this issue.
After further investigation, I found that this problem was actually caused by the inconsistent judgment of module compression methods between dkms and run_test.sh. dkms also checks modules.dep
https://github.com/dell/dkms/blob/4d466bf727347408307aa28ab4f090488360b592/dkms.in#L234-L245
I created PR #410 for this issue.
Thanks for the links @xuzhen
Looking through the patch and the issue at hand it doesn't seem clear to me, why devs opted for patching the kernel instead of changing the CONFIG toggle. It basically leaves the option enabled, only to patch out the functionality :thinking:
@xnox @arighi any input?
Inclined to merge https://github.com/dell/dkms/pull/411 as a temporary workaround.
Recently the CI broke in a somewhat odd manner:
Comparing these with the container runs (22.04 and 23.10 respectively) which remain working fine.
Ubuntu 22.04
Ubuntu 23.10
It seems like the
azure
flavour of the6.5.0
kernel is using zstd kconfig yet the modules are actually uncompressed. @xnox the current state seems broken. Any chance someone in the Canonical/Ubuntu team can fix this?Thanks in advance