14.02.2012 05:03, Dave Reisner wrote:
> http://projects.archlinux.org/mkinitcpio.git/tree/functions#n171


This code is rather primitive. For example, this code does not pay 
attention to the blacklist and very slow (for each module depend you 
should run modinfo + "find /lib/modules/"). Also, this code does not 
allow to find the necessary modules for modalias device, it becomes 
possible if you modprobe:

$ read modalias < 
/sys/devices/pci0000:00/0000:00:0b.0/host0/target0:0:0/0:0:0:0/modalias
$ modprobe --show-depends "$modalias"
insmod /lib/modules/3.0.0/kernel/drivers/scsi/scsi_mod.ko 
insmod /lib/modules/3.0.0/kernel/lib/crc-t10dif.ko 
insmod /lib/modules/3.0.0/kernel/drivers/scsi/sd_mod.ko 

In the altlinux distribution was made a special option (hack) to 
ignore the command altogether.

This method is much better because uses the same mechanism as the loading of 
modules.

-- 
Rgrds, legion

--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to