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>
This commit is contained in:
parent
50c5b68279
commit
8c88e24229
1 changed files with 4 additions and 0 deletions
|
@ -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))))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue