Browse Source

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>
gn-latest-20200428
Brice Waegeneire 2 years ago
committed by Danny Milosavljevic
parent
commit
8c88e24229
No known key found for this signature in database GPG Key ID: E71A35542C30BAA5
  1. 4
      gnu/services.scm

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

Loading…
Cancel
Save