diff options
author | Brice Waegeneire <brice@waegenei.re> | 2020-04-05 07:28:02 +0200 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2020-04-05 12:12:07 +0200 |
commit | 8c88e242292db9b35b4ae6ad788a0f8f3c94bb53 (patch) | |
tree | 926f1bc0afd1be692da3b354eff9554663b65b92 /gnu | |
parent | 50c5b68279bb710b93a8f1dc088b3c00c253c33d (diff) | |
download | patches-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>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services.scm | 4 |
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)))))))) |