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>
1 file changed
tree: 9a18762c35631d139622108d6f4dbb97018bc502
  1. .semaphore/
  2. libkmod/
  3. m4/
  4. man/
  5. shared/
  6. shell-completion/
  7. testsuite/
  8. tools/
  9. .gitignore
  10. .travis.yml
  11. autogen.sh
  12. CODING-STYLE
  13. configure.ac
  14. COPYING
  15. Makefile.am
  16. NEWS
  17. README
  18. README.md
  19. TODO
README.md

kmod - Linux kernel module handling

Coverity Scan Status

This is a mirror only. Please see README file for more information.