Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 158017

Summary: genkernel modprobe script does not correctly find and load kernel modules in iniramfs image
Product: Gentoo Hosted Projects Reporter: Michael <darksoul>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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