From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44027) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKkYe-0000Cr-2v for guix-patches@gnu.org; Sat, 04 Apr 2020 11:18:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKkYd-0007ld-15 for guix-patches@gnu.org; Sat, 04 Apr 2020 11:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKkYc-0007lU-Uo for guix-patches@gnu.org; Sat, 04 Apr 2020 11:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jKkYc-00026n-RE for guix-patches@gnu.org; Sat, 04 Apr 2020 11:18:02 -0400 Subject: [bug#40274] [PATCH v6 1/2] services: Allow modprobe to use "/etc/modprobe.d". Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:43943) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKkYK-0000BG-ID for guix-patches@gnu.org; Sat, 04 Apr 2020 11:17:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKkYJ-0007YM-Bz for guix-patches@gnu.org; Sat, 04 Apr 2020 11:17:44 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:43555) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKkYJ-0007XU-6A for guix-patches@gnu.org; Sat, 04 Apr 2020 11:17:43 -0400 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 20F2D200008 for ; Sat, 4 Apr 2020 15:17:40 +0000 (UTC) From: Brice Waegeneire Date: Sat, 4 Apr 2020 17:17:31 +0200 Message-Id: <20200404151732.20341-2-brice@waegenei.re> In-Reply-To: <20200404151732.20341-1-brice@waegenei.re> References: <20200328135908.2540-1-brice@waegenei.re> <20200404151732.20341-1-brice@waegenei.re> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40274@debbugs.gnu.org This is a temporary crutch allowing 'modprobe' to load it's configuration from "/etc/modprobe.d". The definitive fix is contained in which need to go trough the core-upates branch as it rebuild over 2200 packages. * gnu/services.scm (%modprobe-wrapper): Set 'MODPROBE_OPTIONS' environment variable. --- gnu/services.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/services.scm b/gnu/services.scm index e7a3a95e43..1c39c779a7 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -579,6 +579,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)))))))) -- 2.26.0