*SUMMARY
*
What should I do to enable auto-loading kernel modules in a systemd-employed
system IN ADDITION TO setting KERNEL_MODULE_AUTOLOAD?
*DETAILS*
I'm trying to automatically load out-of-tree kernel modules in my distro (built
using Dunfell) that uses systemd.
Kernel modules and the correponding config files are certainly installed to the
rootfs (each under `/lib/modules/5.xxx/extra/` and `/etc/modules-load.d/`);
however, auto-loading does not occur at all.
My module recipe is as follows. I've added KERNEL_MODULE_AUTOLOAD to enable
auto-loading.
```
LICENSE = "CLOSED"
SUMMARY = "Some description"
PV = "1.0+git${SRCPV}"
SRC_URI = "git://url/to/my.git;user=git;protocol=ssh;branch=main"
SRCREV = "${AUTOREV}"
inherit module
S = "${WORKDIR}/git/src"
RPROVIDES_${PN} += " kernel-module-my_module"
KERNEL_MODULE_AUTOLOAD += " my_module"
```
I've learned that in systemd, systemd-modules-load service is responsible for
module autoload, but I couldn't find either systemd-modules-load itself and
systemd-modules-load.service in the rootfs.
It looks like that modules-load existed in past versions of systemd.bb, so I've
tried to enable modules-load by adding `PACKAGECONFIG_pn-systemd += "
modules-load"` in conf/local.conf. However, bitbake rejected it saying:
```
WARNING: systemd-1_244.5-r0 do_configure: QA Issue: systemd: invalid
PACKAGECONFIG: modules-load [invalid-packageconfig]
```
Is there anything I can do further?
(Supposedly I'm having the same problem with this?
https://lists.yoctoproject.org/g/yocto/message/45275)
Thanks in advance.
Merlin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58437): https://lists.yoctoproject.org/g/yocto/message/58437
Mute This Topic: https://lists.yoctoproject.org/mt/94648966/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-