]> git.ipfire.org Git - thirdparty/kmod.git/commit
modprobe: ignore builtin module on recursive removing
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Thu, 31 Oct 2019 18:12:53 +0000 (20:12 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 7 Nov 2019 07:17:06 +0000 (23:17 -0800)
commit52a0ba82e1ad180f9f91920db70a758fac49466a
tree9a18762c35631d139622108d6f4dbb97018bc502
parent1d14ef82f4a3be741bcdf6b1c6d51ce9dce43567
modprobe: ignore builtin module on recursive removing

If there are built-in dependencies and any of them is built-in in
the kernel, modprobe -r fails with

modprobe: FATAL: Module module_name is builtin.

It makes sense to ignore such dependencies for the case when
removing is called for non-top level module.

Example: cifs module, it declares bunch of softdeps and the first
one fails on some kernel configs:

modprobe: FATAL: Module gcm is builtin.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
tools/modprobe.c