]> git.ipfire.org Git - thirdparty/kmod.git/commit - libkmod/libkmod.h
modprobe: Update error message when path is missing
authorLaura Abbott <labbott@fedoraproject.org>
Mon, 28 Sep 2015 22:39:11 +0000 (15:39 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 30 Sep 2015 18:16:59 +0000 (15:16 -0300)
commitb87d01d6ef87e7f717ed8a9221baeee3c60b571d
tree7dad5cdd0686116529e32fae9f9d0f9577eb23a0
parent4cce76eb45140aededda03697eb596dea4e6b7fb
modprobe: Update error message when path is missing

Currently, modprobe fails with no output by default if the
search paths it tries are missing:

$ modprobe -S notakernel dm-crypt
$
$ modprobe -S notakernel lkjjweiojo
$

This is fairly cryptic and not at all obvious there is a problem
unless the error code is checked or verbose flags are used.
Update the error message to indicate a problem and print out the
directory that failed.
libkmod/libkmod-internal.h
libkmod/libkmod.h
tools/modprobe.c