From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mGURNwzQAF/FSgAA0tVLHw (envelope-from ) for ; Sat, 04 Jul 2020 18:53:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mN/rMgzQAF87fAAAB5/wlQ (envelope-from ) for ; Sat, 04 Jul 2020 18:53:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F13E940983 for ; Sat, 4 Jul 2020 18:53:00 +0000 (UTC) Received: from localhost ([::1]:44432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrnHX-0005LY-HA for larch@yhetil.org; Sat, 04 Jul 2020 14:52:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrnHN-0005Ko-3D; Sat, 04 Jul 2020 14:52:49 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:41475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrnHK-0006NL-Lr; Sat, 04 Jul 2020 14:52:48 -0400 X-Originating-IP: 176.181.186.101 Received: from localhost (i15-les02-ntr-176-181-186-101.sfr.lns.abo.bbox.fr [176.181.186.101]) (Authenticated sender: brice@waegenei.re) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 3C4CFFF805; Sat, 4 Jul 2020 18:52:41 +0000 (UTC) From: Brice Waegeneire To: guix-patches@gnu.org Subject: [WIP 0/6] Add kernel-module-configuration service Date: Sat, 4 Jul 2020 20:52:34 +0200 Message-Id: <20200704185234.12571-1-brice@waegenei.re> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.199; envelope-from=brice@waegenei.re; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/04 14:52:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: H5iklhHVRTlQ Hello Guix, Here is a work-in-progress to create a service centralizing the configuration for built-in and loadable kernel modules. The kernel module configuration service has been implemented by making some fields from 'operating-system' custom from the 'services' field. Here are are some example of how to use it. --8<---------------cut here---------------start------------->8--- ;; Loadable kernel module (simple-service 'ddcci-module kernel-module-configuration-service-type (list (kernel-module (name "ddcci") (package ddcci-driver-linux) (load? #t) (options '("dyndbg" "delay=600"))) (kernel-module (name "ddcci-backlight") (blacklist? #t)))) ;; Built-in kernel module (simple-service 'intel-module kernel-module-configuration-service-type (list (kernel-module (name "i915") (options '("fastboot=1"))))) --8<---------------cut here---------------end--------------->8--- This WIP version is mainly missing the ability to configure built-in modules trough the kernel arguments. It's the continuation of the work on kernel-module-loader-service[1] and is needed to help fixing #41082[2]. I will try to go back to it after the GSOC network boot project. [1]: https://issues.guix.info/40274 [2]: https://issues.guix.info/41082 - Brice Brice Waegeneire (6): services: simulated-wifi: Use 'kernel-module-loader'. services: Add 'kernel-profile-service-type'. services: Add 'modprobe-service-type'. services: kernel-module-loader: Return a single 'shepherd-service'. WIP services: Add kernel-arguments-service-type. WIP services: Add kernel-module-configuration service. gnu/services.scm | 102 +++++++++--- gnu/services/linux.scm | 276 +++++++++++++++++++++++++++++---- gnu/services/networking.scm | 25 +-- gnu/system.scm | 55 +++++-- gnu/system/linux-container.scm | 2 + gnu/tests/linux-modules.scm | 65 +++++--- 6 files changed, 420 insertions(+), 105 deletions(-) -- 2.26.2