[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [kmod] not on-demand-loading modules with custom kernel



hi all.

Am 19.09.2022 16:27, schrieb hede:
I need help getting module on-demand-loading working with a custom kernel.

Additional information:

My problem seems less related to udev but more probably related the kernel kmod subsystems!?

The kernel usually calls /sbin/modprobe if functionality is missing. Check kmod.c in kernel sources. If I create a file modprobe.fake [1] and modify /proc/sys/kernel/modprobe to call this file, a standard Debian shows the same behaviour than my Chromebook: If fat/vfat modules are not loaded and I try to mount some fat filesystem afterwards this fails with the same error message.

But while a standard Debian system obviously calls the fake modprobe command (as it creates the txt file) the Chromebook does NOT do so.

[1]
### /usr/local/bin/modprobe.fake ###
#!/bin/sh
date >> /tmp/modprobe.txt
echo "$@" >> /tmp/modprobe.txt
exit 1
### (chmod +x)

default config on Chromebook:
###
root@cbtest:~# cat /proc/sys/kernel/modules_disabled
0
root@cbtest:~# cat /proc/sys/kernel/modprobe
/sbin/modprobe
###

still searching a solution...

hede


Reply to: