guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 01/02: services: Allow modprobe to use "/etc/modprobe.d".


From: Ludovic Courtès
Subject: Re: 01/02: services: Allow modprobe to use "/etc/modprobe.d".
Date: Sun, 05 Apr 2020 23:15:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi Danny & Brice,

Nice stuff!

address@hidden skribis:

> --- a/gnu/services.scm
> +++ b/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")

[...]

> +  (services (cons* (service kernel-module-loader-service-type
> +                            '("ddcci" "ddcci_backlight"))
> +                   (simple-service 'ddcci-config etc-service-type
> +                                   (list `("modprobe.d/ddcci.conf"
> +                                           ,ddcci-config)))
> +                   %base-services))

Looking at this, I was wondering if it would be possible to not use
/etc/modprobe.d and instead have a way to tell the modprobe wrapper to
pass “-C /gnu/store/…-modprobe.d”, which would contain the right thing.

Thoughts?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]