switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Fri, 24 Jul 2020 12:23:13 +0000 (13:23 +0100)
committerAndreas Beckmann <anbe@debian.org>
Fri, 24 Jul 2020 12:23:13 +0000 (13:23 +0100)
commit5294936c2e88b60f739fb266434ebb488ae2987f
treea9679843da517583aac8a56ed7d788de1e0d8e97
parent6c1faf3b1054207a065a39c73b1c0c5dc820e296
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