From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: 01/02: services: Allow modprobe to use "/etc/modprobe.d". Date: Sun, 05 Apr 2020 23:15:03 +0200 Message-ID: <87v9mdhbxk.fsf@gnu.org> References: <20200405110749.5469.24356@vcs0.savannah.gnu.org> <20200405110750.E368020A26@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:53615) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLCbj-0005aC-5h for guix-devel@gnu.org; Sun, 05 Apr 2020 17:15:08 -0400 In-Reply-To: <20200405110750.E368020A26@vcs0.savannah.gnu.org> (guix-commits@gnu.org's message of "Sun, 5 Apr 2020 07:07:50 -0400 (EDT)") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org, Danny Milosavljevic , Brice Waegeneire Hi Danny & Brice, Nice stuff! guix-commits@gnu.org 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 =E2=80=9C-C /gnu/store/=E2=80=A6-modprobe.d=E2=80=9D, which would cont= ain the right thing. Thoughts? Ludo=E2=80=99.