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