[PATCH] modprobe fix for aliases/modprobe.conf

Natanael Copa natanael.copa at gmail.com
Sat Jul 15 05:33:32 PDT 2006


I had the same symptoms like VEvgeniy is describing here:
http://bugs.busybox.net/view.php?id=889
(The reason it works for integrator (and others) are probably that they
have a modprobe.conf in their system, while VEvgeniy has not)

But there is a bug in modprobe.

I'll refer to modules.conf and modules.alias in this email as:
	 modules.conf = ( /etc/modprobe.conf || /etc/modules.conf
		|| /etc/conf.modules )

	modules.alias = ( /lib/modules/`uname -r/modules.alias
		|| /lib/modules/modules.alias )


Currently modprobe works like this:

If !FEATURE_2_6_MODULES, neither modules.conf or modules.alias is
loaded. So unless you enamble 2.6 modules, busybox will ignore
modules.conf.

If busybox fails to open modules.conf, it will ignore modules.alias too.

The attatched patch will change this behaviour to:
* Always try to load modules.conf (so 2.4 systems will also use it)

* if !FEATURE_2_6_MODULES, ignore modules.alias (should make things
smaller on 2.4 systems)

* if FEATURE_2_6_MODULES, try to load modules.alias, even if there are
no modules.conf.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: modprobe.patch
Type: text/x-patch
Size: 1643 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20060715/e4763cdd/modprobe.bin


More information about the busybox mailing list