switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Sat, 22 Aug 2020 20:31:43 +0000 (21:31 +0100)
committerAndreas Beckmann <anbe@debian.org>
Sat, 22 Aug 2020 20:31:43 +0000 (21:31 +0100)
commit05a8de6ca3ddddcaf6062d43b88fd03de2e25abc
tree8affa2222da89ad4f41b752aad0b8adc31117408
parent895e287a1649637d2542a1e3d068ae52c898e329
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