switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Wed, 11 Jun 2025 23:43:03 +0000 (01:43 +0200)
committerAndreas Beckmann <anbe@debian.org>
Wed, 11 Jun 2025 23:43:03 +0000 (01:43 +0200)
commit23604d07329c960746a2dd71d2c04b977d18f776
treef7bd61759840f70a1cd0d96d8b230317c01cee7f
parent27ad1c903d5da5e3206b40a1d5b7db3fa75a00a8
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