Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158017 - genkernel modprobe script does not correctly find and load kernel modules in iniramfs image
Summary: genkernel modprobe script does not correctly find and load kernel modules in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-12-13 05:12 UTC by Michael
Modified: 2007-01-04 09:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2006-12-13 05:12:03 UTC
Bug occurs only for modules that have similar names, in my case piix and ata-piix, didn't checked if other such modules exist.
/usr/share/genkernel/generic/modprobe:66

real_mod_path()
{
        # Find -name is no good since the return status is always zero
        find /lib/modules | grep "${1}${KSUFF}"
}

this finds and returns 

/lib/modules/.../kernel/drivers/ide/pci/piix.ko
/lib/modules/.../kernel/drivers/scsi/ata_piix.ko

which prints error about wrong parameter(/lib/modules/.../kernel/drivers/scsi/ata_piix.ko) for module piix ;]

my simple hack to repair this is to change line 69 to
find /lib/modules | grep "/${1}${KSUFF}"

which returns correct, one path to module
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-13 11:30:17 UTC
I've fixed this now in subversion and it'll show up in the next release of genkernel.
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-04 09:21:38 UTC
Fixed in 3.4.6