#include <hallo.h> * Martin Michlmayr [Wed, Aug 04 2004, 05:42:44PM]:
> Wouldn't it be easier and more reliable for mkinitrd to use > /proc/modules to get a list of modules to load, e.g. something > like > > for m in $(cat /proc/modules | cut -d\ -f1); do > if test "$(find /lib/modules/$(uname > -r)/kernel/drivers/scsi/$m.$o)"; then > echo $m >>loadmodules > fi > done > > This is not verified to work, but I'm sure you get the > meaning. The idea idea is not new (in fact, once I have beeing preparing a patch that did something like this) but it has drawbacks. On a full modularized system, maybe 10..20% of the loaded drivers need to be in initrd. Actually, it is such a problem because the Linux kernel sucks. There are no good methods to read associations between drivers and devices/filesystems/etc. Regards, Eduard. -- Ich verabscheue, was Sie sagen: ich werde Ihr Recht, es zu sagen, bis zum Tod verteidigen. -- François Marie Voltaire