]> git.ipfire.org Git - thirdparty/kmod.git/commit
modprobe: don't check if module builtin to decide if it's builtin
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 03:14:35 +0000 (00:14 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 03:14:35 +0000 (00:14 -0300)
commit4744ebcef48b2400d76ce5a2de735d8e74ebfe52
treefde7214465537324c375648f0d49e7f5f613fb35
parent26906fe73eb8ca40761c0378ccdc1f2ed9a15a08
modprobe: don't check if module builtin to decide if it's builtin

More or less confusing message, but if module is builtin in the live
system, it doesn't mean it's builtin in the target kernel.

Instead we now check if module has a path. It don't have a path only if
it's builtin in the target or if it doesn't exist at all. The latter
should not be a problem since this code is being called from inside the
library. Anyway, put an assert to make sure we get bug reports if any
case slipped in here.
tools/kmod-modprobe.c