On Wed, 6 May 2009 09:22:25 +0200, Marc Grimme <gr...@at...> wrote:
> On Tuesday 05 May 2009 23:15:46 Gordan Bobic wrote:
>> Gordan Bobic wrote:
>> > Module dependencies don't seem to get worked out correctly. e100
module
>> > requires mii module to be loaded. mkinitrd -l doesn't package mii
>> > module
>> > into the initrd. This might be due to the fact that depmod -a never
ran
>> > on the new kernel. Either way, this is something that initrd -l should
>> > really deal with on it's own without requiring manual intervention via
>> > -M.
>
> I perfectly agree btw. this holds also for tg3 driver who require since
> kernel 2.6.18-128.. the libphy module.
mii is required by e100 in RHEL 5.2 and 5.3, but this has probably been
the case for a while.
> But I didn't find a way how to query module dependencies.
>
> Any ideas would be appreciated.
Something along these lines would probably work:
# grep e100.ko /lib/modules/$(uname -r)/modules.dep
/lib/modules/2.6.18-128.1.6.el5/kernel/drivers/net/e100.ko:
/lib/modules/2.6.18-128.1.6.el5/kernel/drivers/net/mii.ko
It could similarly be grepped out of /proc/modules or lsmod.
>> Especially when -M doesn't work:
>> # /opt/atix/comoonics-bootimage/mkinitrd -l -M mii /tmp/initrd_sr.img
>> 2.6.18-128.1.6.el5
>> /opt/atix/comoonics-bootimage/mkinitrd: illegal option -- M
>> Error wrong option.
> You're right. This is a bug.
> Apply the attached patch or as a workaround add this module
> to /etc/comoonics/comoonics-bootimage.cfg in the default_modules section.
Thanks, will try the patch tonight. I already worked around it by adding
the
uncaught module files to an auxiliary list file.
Gordan
|