switch from "rmmod" to "modprobe -r"
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Sat, 27 Jan 2024 00:28:10 +0000 (01:28 +0100)
committerAndreas Beckmann <anbe@debian.org>
Sat, 27 Jan 2024 00:28:10 +0000 (01:28 +0100)
commitb42c529a062ba5a80667d730788155e790fdc7f9
treefcaab0bdb16c6caaf209b2140ff274fc65004cc0
parent0f9cb8f5eef59ebb815cb1e9a8f41189dedc719c
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