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>master
parent
50c5b68279
commit
8c88e24229
|
@ -580,6 +580,10 @@ ACTIVATION-SCRIPT-TYPE."
|
||||||
#~(begin
|
#~(begin
|
||||||
(setenv "LINUX_MODULE_DIRECTORY"
|
(setenv "LINUX_MODULE_DIRECTORY"
|
||||||
"/run/booted-system/kernel/lib/modules")
|
"/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
|
(apply execl #$modprobe
|
||||||
(cons #$modprobe (cdr (command-line))))))))
|
(cons #$modprobe (cdr (command-line))))))))
|
||||||
|
|
||||||
|
|
Reference in New Issue