Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

depmod: handle the case of /sbin/depmod without /sbin in PATH

Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped
hard-coding the path of depmod, but in the process caused trouble for
distributions that had that /sbin location, but didn't have it in the
PATH (generally because /sbin is limited to the super-user path).

Work around it for now by just adding /sbin to the end of PATH in the
depmod.sh script.

Reported-and-tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+2
+2
scripts/depmod.sh
··· 15 15 exit 0 16 16 fi 17 17 18 + # legacy behavior: "depmod" in /sbin, no /sbin in PATH 19 + PATH="$PATH:/sbin" 18 20 if [ -z $(command -v $DEPMOD) ]; then 19 21 echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2 20 22 echo "This is probably in the kmod package." >&2