From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: Re: Loading modules built using linux-module-build-system Date: Mon, 21 Oct 2019 17:30:34 +0200 Message-ID: <874l02i09x.fsf@jlicht.xyz> References: <877e8snntp.fsf@jlicht.xyz> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58295) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZds-0001Lo-Nv for guix-devel@gnu.org; Mon, 21 Oct 2019 11:30:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZdp-0000WN-Mw for guix-devel@gnu.org; Mon, 21 Oct 2019 11:30:43 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:45142) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMZdn-0000Ue-PX for guix-devel@gnu.org; Mon, 21 Oct 2019 11:30:41 -0400 In-Reply-To: <877e8snntp.fsf@jlicht.xyz> 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.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org ping :-) Jelle Licht writes: > Hello Guix, > > Not too long ago, the linux-module-build-system was introduced. I ran > into some code in the wild written by Alex Griffin that defines a > shepherd service that does the following for a given kernel-module > package: > > - set the LINUX_MODULE_DIRECTORY environment variable to > /lib/modules > - call modprobe on the .ko file (without .ko) > > I have verified this way of loading modules to work, but was wondering > whether we should rather provide a `out-of-tree-kernel-module' service > of sorts to do this. I saw a contribution for a kernel module built using linux-module-build-system today, and I have to wonder, how are people making use of these modules on their Guix System installation? I currently use a hacked-together shepherd one-shot service that simply calls modprobe, but was wondering whether folks have a nicer solution for this. > [snip] > Is there a way by which a service can refer to the > e.g. `operating-system-kernel' of the operating-system it is embedded > in? I actually figured this one out: As long as your service snippet is directly embedded in the operating-system declaration, one can use: `(operating-system-kernel this-operating-system)'. - Jelle