summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Waegeneire <brice@waegenei.re>2020-04-05 07:28:02 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2020-04-05 12:12:07 +0200
commit8c88e242292db9b35b4ae6ad788a0f8f3c94bb53 (patch)
tree926f1bc0afd1be692da3b354eff9554663b65b92
parent50c5b68279bb710b93a8f1dc088b3c00c253c33d (diff)
downloadpatches-8c88e242292db9b35b4ae6ad788a0f8f3c94bb53.tar
patches-8c88e242292db9b35b4ae6ad788a0f8f3c94bb53.tar.gz
services: Allow modprobe to use "/etc/modprobe.d".
* gnu/services.scm (%modprobe-wrapper): Set 'MODPROBE_OPTIONS' environment variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
-rw-r--r--gnu/services.scm4
1 files changed, 4 insertions, 0 deletions
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 @@ ACTIVATION-SCRIPT-TYPE."
#~(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))))))))