On recent systems, calls to /sbin/modprobe are handled by udev depending on the kind of device the kernel has discovered. This patch creates an uevent for the kernels internal request_module(), to let udev take control over the request, instead of forking the binary directly by the kernel. The direct execution of /sbin/modprobe can be disabled by setting: /sys/module/kmod/mod_request_helper (/proc/sys/kernel/modprobe) to an empty string, the same way /proc/sys/kernel/hotplug is disabled on an udev system.
Showing the changes to kernel/params.c (1 of 4 files). Show all
Unified · Split
| @@ -714,6 +714,7 @@ static int __init param_sysfs_init(void) · 713 unmodified lines | ||
| 714 | 714 | } |
| 715 | 715 | |
| 716 | 716 | param_sysfs_builtin(); |
| 717 | + kmod_sysfs_init(); | |
| 717 | 718 | |
| 718 | 719 | return 0; |
| 719 | 720 | } |