Re: kmod-5 --show-depends broken?

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

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux