switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Sat, 22 Aug 2020 19:42:31 +0000 (20:42 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 22 Aug 2020 19:42:31 +0000 (20:42 +0100)
commit8943b4af860ab0ad861123e543a07e09e9f666e7
tree82197447a1df035b319bb9d69b174b98693a5ee2
parentac2a4954a68854e35647e610687752376b5b3ad9
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