switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Thu, 8 Feb 2024 10:22:15 +0000 (10:22 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 8 Feb 2024 10:22:15 +0000 (10:22 +0000)
commiteb68333125976d1c5cc6f106e6eaf55759c8d0b0
tree1858ba382148cc507c8c547384385d9a83b3ed48
parent02aab28e876fb59c85542003eafa145e21a3497c
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