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

Bug 426992

Summary: sys-kernel/gentoo-sources: Include patch to not hardcode modprobe and depmod into /sbin
Product: Gentoo Linux Reporter: Samuli Suominen (RETIRED) <ssuominen>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: hsggebhardt, kernel-misc, nikoli, tetromino
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 416223    

Description Samuli Suominen (RETIRED) gentoo-dev 2012-07-17 12:40:48 UTC
depmod bug 426698, modprobe ...

kmod ebuild is currently:

        if use tools; then
                local cmd
                for cmd in insmod lsmod modinfo rmmod; do
                        dosym kmod /usr/bin/${cmd}
                done
                # according to upstream, modprobe can be called directly by the kernel,
                # so it cannot be moved to /usr/bin at this time.
                dosym /usr/bin/kmod /sbin/modprobe
                # another hardcoded path in the Linux source tree, bug #426698
                dosym /usr/bin/kmod /sbin/depmod
        fi

so in order to drop the hacks from kmod, can we patch gentoo-sources to just search the commands in the $PATH?
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-07-17 18:45:47 UTC
This patch should go upstream, not (just) to gentoo-sources.

Lots of people build their kernels from git, and failure to run depmod can often result in an unbootable system.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-12 16:01:45 UTC
Please report this upstream if you haven't already done so, CC kernel@gentoo.org and kernel-misc@gentoo.org and put the upstream link in the URL field. Thank you in advance.