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:
Brice Waegeneire 2020-04-05 07:28:02 +02:00 committed by Danny Milosavljevic
parent 50c5b68279
commit 8c88e24229
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -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))))))))