Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit ed3ab27

Browse files
xiaolusxswaroopbalan
authored andcommitted
modules_install: make missing $DEPMOD a warning instead of an error
When $DEPMOD is not found, only print a warning instead of exiting with an error message and error status. Warning: 'make modules_install' requires /sbin/depmod. Please install it. This is probably in the kmod package. Change-Id: I30663b83a705873b4e2def3b2e8380913d69c450 Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Fixes: 934193a ("kbuild: verify that $DEPMOD is installed") Cc: stable@vger.kernel.org Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi> Cc: Lucas De Marchi <lucas.de.marchi@gmail.com> Cc: Michal Marek <michal.lkml@markovi.net> Cc: Jessica Yu <jeyu@kernel.org> Cc: Chih-Wei Huang <cwhuang@linux.org.tw> Cc: H. Nikolaus Schaller <hns@goldelico.com> Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
1 parent 5b7f244 commit ed3ab27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/depmod.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ if ! test -r System.map ; then
1616
fi
1717

1818
if [ -z $(command -v $DEPMOD) ]; then
19-
echo "'make modules_install' requires $DEPMOD. Please install it." >&2
19+
echo "Warning: 'make modules_install' requires $DEPMOD. Please install it." >&2
2020
echo "This is probably in the kmod package." >&2
21-
exit 1
21+
exit 0
2222
fi
2323

2424
# older versions of depmod don't support -P <symbol-prefix>

0 commit comments

Comments
 (0)