modprobe: handle built-in modules (v4, this time tested...)
commitd2cc5cecad6e754bb107c8a54c49a4868ac9995a
authorMichal Marek <mmarek@suse.cz>
Thu, 10 Sep 2009 14:26:34 +0000 (10 16:26 +0200)
committerJon Masters <jcm@jonmasters.org>
Thu, 1 Oct 2009 06:21:14 +0000 (1 02:21 -0400)
tree6fe1e5160e0038c974e71bf0961f82cd1b3fc2a9
parente553ec09e0c96e3c44ea8c341ac74ab2effc8463
modprobe: handle built-in modules (v4, this time tested...)

The kernel installs a modules.builtin file listing all builtin
modules. Let depmod generate a modules.builtin.bin file and use
this in modprobe: If a module is not found in modules.dep or
modules.alias, check if the module is builtin and either do nothing,
or print "builtin <module>" if --show-depends was given. Trying to
remove a builtin module returns an error, as does inserting a builtin
module with --first-time.

Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Jon Masters <jcm@jonmasters.org>
depmod.c
modprobe.c