]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
depmod: handle the case of /sbin/depmod without /sbin in PATH
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Dec 2020 19:40:22 +0000 (11:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:09:06 +0000 (20:09 +0100)
commitf236d698cd71f2bb3ea92c36f9a845a63b3c2812
tree1e6d010be1a6e8143be0650b8cb706564271ae22
parent708f3baafc5b899da6dce39ad96c4c4a9770e3fd
depmod: handle the case of /sbin/depmod without /sbin in PATH

[ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/depmod.sh