switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Sat, 2 Jan 2021 13:54:24 +0000 (13:54 +0000)
committerLuca Boccassi <bluca@debian.org>
Sat, 2 Jan 2021 13:54:24 +0000 (13:54 +0000)
commitea76c807707f1394da67d5283a097c00fb6a3cc8
treeee45ab62cb32064384016f6c71db966a92c22f31
parent1f3181e93d3e457bd2b077e91580a62d7a8bb698
switch from "rmmod" to "modprobe -r"

Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/1ada79fe5916961fc4e4917f8c63bb184908d986
Applied-Upstream: 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