All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald.hoyer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: John Reiser <jreiser-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: build initramfs: explain modprobe?
Date: Wed, 31 Aug 2011 14:15:22 +0200	[thread overview]
Message-ID: <4E5E25DA.4060802@gmail.com> (raw)
In-Reply-To: <4E5D68A0.8020006-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>

On 31.08.2011 00:48, John Reiser wrote:
> What properties of modprobe are essential for building initramfs?
> Modprobe works for only one kernel module at a time, and this is
> a cause of slowness.  For instance, computing the transitive
> closure of the Requires relationship over a non-small set of modules
> can be performed faster by loading modules.dep into a bash associative
> array, then processing in bash.  Also, modinfo now is invoked once per
> module to find firmware, but this can be sped up by invoking on batches
> of modules, using "split -C 32000" to avoid the argsize limit of execve.
>
> Invoking modprobe with --ignore-install seems to remove any effects
> due to (possibly host-specific) /etc/modules.d/*.conf.  Is there anything
> else that modprobe does for building initramfs, other than transitive
> closure of Requires?
>

Hmm, you are right. Modules loaded in "/etc/modules.d/*.conf" are not honored.
And yes, "modprobe" is only used to easily get the requirements.

  parent reply	other threads:[~2011-08-31 12:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 22:48 build initramfs: explain modprobe? John Reiser
     [not found] ` <4E5D68A0.8020006-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.org>
2011-08-31 12:15   ` Harald Hoyer [this message]
     [not found]     ` <4E5E25DA.4060802-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-09-06 15:34       ` John Reiser

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

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

  git send-email \
    --in-reply-to=4E5E25DA.4060802@gmail.com \
    --to=harald.hoyer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=jreiser-Po6cBsTGB2ZWk0Htik3J/w@public.gmane.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.