From 8c88e242292db9b35b4ae6ad788a0f8f3c94bb53 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Sun, 5 Apr 2020 07:28:02 +0200 Subject: services: Allow modprobe to use "/etc/modprobe.d". * gnu/services.scm (%modprobe-wrapper): Set 'MODPROBE_OPTIONS' environment variable. Signed-off-by: Danny Milosavljevic --- gnu/services.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/services.scm b/gnu/services.scm index 7941cd3af0..832d6984d8 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -580,6 +580,10 @@ (define %modprobe-wrapper #~(begin (setenv "LINUX_MODULE_DIRECTORY" "/run/booted-system/kernel/lib/modules") + ;; FIXME: Remove this crutch when the patch #40422, + ;; updating to kmod 27 is merged. + (setenv "MODPROBE_OPTIONS" + "-C /etc/modprobe.d") (apply execl #$modprobe (cons #$modprobe (cdr (command-line)))))))) -- cgit v1.2.3