On 07.06.2021 18:29, Adrian Glaubitz wrote:
On Jun 7, 2021, at 5:17 PM, Martin Wilck
wrote: OTOH, one KMP will work not just for one kernel, but for all KABI- compatible kernels.
DKMS modules are built per kernel ABI version, not for every kernel version.
Could you elaborate? dkms will recognize if module are present in current kernel as weak update and skip build in this case. But as far as I can tell dkms checks for /sbin/weak-modules or /usr/lib/module-init-tools/weak-modules neither of which is present in Leap (looking at Leap 15.3 and dkms from openSUSE:Backports:SLE-15-SP3). dkms will use $WEAK_MODULES_BIN but it does not look like it is set either. I may have missed something?
So, this argument is moot.
Well, KMP is built when kernel-flavor is installed (strictly speaking when kernel-flavor-devel is installed) while dkms runs on next reboot with new kernel. If dkms modules are needed to access root how is dkms supposed to work? Are there any hooks *in openSUSE* to run dkms during kernel installation?
But anyway, I installed that machine with Debian in the end as I need a working Multi-Arch environment for cross-compiling which still doesn’t work on openSUSE, unfortunately.
Well, Debian has /etc/kernel; you cannot compare Debian and openSUSE. How to execute arbitrary script during kernel (package) installation on openSUSE?