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 wPBBOjjuvl4CSgAA0tVLHw (envelope-from ) for ; Fri, 15 May 2020 19:32:08 +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 YFAjNjjuvl7RTgAAB5/wlQ (envelope-from ) for ; Fri, 15 May 2020 19:32:08 +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 94921940276 for ; Fri, 15 May 2020 19:32:08 +0000 (UTC) Received: from localhost ([::1]:49652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZg3z-0002bY-DK for larch@yhetil.org; Fri, 15 May 2020 15:32:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZg3q-0002ay-9J for guix-devel@gnu.org; Fri, 15 May 2020 15:31:58 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:46321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZg3p-0002GR-2e for guix-devel@gnu.org; Fri, 15 May 2020 15:31:57 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay11.mail.gandi.net (Postfix) with ESMTPA id 6205B100007; Fri, 15 May 2020 19:31:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 15 May 2020 19:31:51 +0000 From: Brice Waegeneire To: guix-devel@gnu.org Subject: Kernel module configuration service Message-ID: X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 Received-SPF: pass client-ip=217.70.178.231; envelope-from=brice@waegenei.re; helo=relay11.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/15 15:31:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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: , 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: -1.01 X-TUID: a0V/h/7JdLJO Hello Guix, I'm working on the future 'kernel-module-configuration-service-type'[0] (KMCS) and I need some guidance. This service will be a one stop shop for all kernel module related configuration by doing the following 4 things: 1. Generate a config directory for modrope to use 2. Load loadable kernel module by extending 'kernel-module-loader-service' 3. Configure built-in module by being a new source for 'operating-system-kernel-arguments' 4. Add loadable kernel modules to the kernel profile by being a source for 'operating-system-kernel-loadable-modules' ATM I need help with point number 1 in regard to putting in place the config directory for modprobe. To do so I need to change '%modprobe-wrapper' into a procedure to take the configuration directory as an argument, since the directory will now come from '/gnu/store/' instead of '/etc/'. The problem is that the wrapper is currently put in place by '%linux-bare-metal-service' which is an essential service, so it seems that KMCS will have to become one too. Looking around at some essential service most of them are straight forward and don't extend services like 'kernel-module-loader-service-type' (which itself extend 'shepherd-root-service-type'). What are the guidelines to add a service to the essential-services? Can KMCS become an essential-service? Any other remarks/idea? [0]: https://issues.guix.info/40274#18 Have a good day, - Brice