From 4e0029db252b4bda75f164528262c4817e9fb18c Mon Sep 17 00:00:00 2001 From: Tim Kane Date: Sat, 6 Jan 2024 01:13:57 +1100 Subject: [PATCH] Call out to modprobe with the '--use-blacklist' switch This allows modprobe to early out in the event that the nvidia driver has been blacklisted https://github.com/NVIDIA/nvidia-modprobe/issues/5 --- modprobe-utils/nvidia-modprobe-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modprobe-utils/nvidia-modprobe-utils.c b/modprobe-utils/nvidia-modprobe-utils.c index 297d8a1..72dfe50 100644 --- a/modprobe-utils/nvidia-modprobe-utils.c +++ b/modprobe-utils/nvidia-modprobe-utils.c @@ -343,7 +343,7 @@ static int modprobe_helper(const int print_errors, const char *module_name, */ silence_current_process(); - execle(modprobe_path, "modprobe", + execle(modprobe_path, "modprobe", "--use-blacklist", module_name, NULL, envp); /* If execl(3) returned, then an error has occurred. */