unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Guix-devel <guix-devel@gnu.org>
Subject: Resolving Linux module dependencies
Date: Fri, 28 Nov 2014 08:58:50 +0100	[thread overview]
Message-ID: <87r3wnbvt1.fsf@gnu.org> (raw)

In light of <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19190#23>, I
realized that the naïve handling of kernel modules (à la ‘insmod’) in
the initrd and at boot time did not scale: one had to specify the
dependencies of the modules to be loaded from the initrd and do so in
topological order.

For a moment I contemplated the idea of writing libkmod bindings to do
that, and then realized that using Andy’s ELF parser would get us there
more quickly.

So the recent commits import the ELF parser from Guile 2.1, then use it
to obtain module dependency information in (gnu build linux-boot), use
that dependency information to copy the closure of the user-specified
modules to the initrd, and finally load the closure of the
user-specified modules (à la ‘modprobe’.)

Comments & bug reports welcome!

I was happy to see we could get things done this quickly thanks to the
ELF parser.  :-)

Ludo’.

                 reply	other threads:[~2014-11-28  7:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87r3wnbvt1.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.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).