me
/
guix
Archived
1
0
Fork 0

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
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
1 changed files with 4 additions and 0 deletions

View File

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