unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Jelle Licht <jlicht@fsfe.org>
Cc: guix-devel@gnu.org
Subject: Re: Loading modules built using linux-module-build-system
Date: Mon, 21 Oct 2019 20:49:47 +0200	[thread overview]
Message-ID: <20191021204857.5dff6e9b@scratchpost.org> (raw)
In-Reply-To: <20191021202733.3c340770@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

I just thought of a better way.

Represent the Linux kernel (including out-of-tree-modules) as a profile,
most probably just the system profile (which already exists--extend it).

A user package (for example if referred to by a system service) would
propagate-input the kernel module package it requires.

That would also make sure that conflicts are handled (otherwise they'd be
"handled" by the kernel doing strange stuff at runtime depending on which
package's "foo.ko" got modprobed first if there are multiple files with
the same name "foo.ko" in different packages).

The union to be presented as /run/current-system/kernel/lib/modules would
be all the packages of the system profile which have a
/lib/modules/<kernel-version> directory in their derivations.

It would all automagically work, provided that we modify Guix system so that
whoever populates /run/current-system/kernel/lib/modules does the union.

The limitation of it not be possible for a regular user to add kernel
modules is OK I think.  That's where I draw the line--a normal profile
has no business adding Linux kernel modules to kernel space in the first
place.

Not sure how the interactions with Guix on a foreign distribution would be,
though.  Do those even use the same Guile modules touched here?

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2019-10-21 18:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 22:50 Loading modules built using linux-module-build-system Jelle Licht
2019-10-21 15:30 ` Jelle Licht
2019-10-21 18:27 ` Danny Milosavljevic
2019-10-21 18:49   ` Danny Milosavljevic [this message]
2019-10-21 21:39     ` Danny Milosavljevic
2019-10-22 12:24       ` Ludovic Courtès
2019-11-14 16:31         ` Danny Milosavljevic
2019-11-17 20:35           ` Ludovic Courtès
2019-12-22 20:06             ` Danny Milosavljevic
2019-12-30 18:55               ` Ludovic Courtès
2019-10-22  6:52     ` Giovanni Biscuolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191021204857.5dff6e9b@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=jlicht@fsfe.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).