]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 1 Jan 2021 20:26:39 +0000 (12:26 -0800)
commit5c121b61d3c7570cd010219520da5ae61952dacf
tree17eb61b45065227c46ef7500b57043bf35f8a7ee
parent8d5a1398867e1f269f6e468c8dda4aba785abe50
depmod: handle the case of /sbin/depmod without /sbin in PATH

Commit 15b4559fd438 ("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>
scripts/depmod.sh