switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Wed, 6 Feb 2019 11:57:48 +0000 (11:57 +0000)
committerLuca Boccassi <bluca@debian.org>
Wed, 6 Feb 2019 11:57:48 +0000 (11:57 +0000)
commitacaefd30fc96797c21820b3c6022cd3b8f3f2128
treeafd5f21006799681469c3091815c022f5fbc722b
parentfd1173d3d066e03202e3c7b04c7d7b21e620848f
switch from "rmmod" to "modprobe -r"

Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/1ada79fe5916961fc4e4917f8c63bb184908d986
Bug: https://github.com/Bumblebee-Project/Bumblebee/issues/565
Bug-Debian: https://bugs.debian.org/793389

With the introduction of nvidia-uvm module, unloading nvidia module will fail
unless nvidia-uvm is unloaded.  GH-565 suggests using "remove" or "softdep"
modprobe.d clauses to teach modprobe to handle that for us; "rmmod" does not
have that functionality, so switch to "modprobe -r".

Gbp-Pq: Name modprobe-r-instead-of-rmmod.patch
src/module.c