Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426992 - sys-kernel/gentoo-sources: Include patch to not hardcode modprobe and depmod into /sbin
Summary: sys-kernel/gentoo-sources: Include patch to not hardcode modprobe and depmod ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 416223
  Show dependency tree
 
Reported: 2012-07-17 12:40 UTC by Samuli Suominen (RETIRED)
Modified: 2013-04-12 16:01 UTC (History)
4 users (show)

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 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.