All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] devtmpfs and initramfs
Date: Tue, 19 Jul 2011 12:33:13 +0200	[thread overview]
Message-ID: <87aaca4l1y.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <201107191222.19313.arnout@mind.be> (Arnout Vandecappelle's message of "Tue, 19 Jul 2011 12:22:19 +0200")

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

 Arnout>  Hoi all,

 Arnout>  I'm using an initramfs as the root filesystem image, and
 Arnout> devtmpfs for the devices.  However, it turns out that devtmpfs
 Arnout> doesn't get mounted automatically if the root filesystem is an
 Arnout> initramfs (at least in 2.6.35).

Indeed, init/mainc::kernel_init() doesn't call prepare_namespace()
(which calls devtmpfs_mount()) if an initramfs with an /init is found.

 Arnout>  I ended up adding the following to my inittab:

 Arnout> null::sysinit:/bin/mount -t devtmpfs devtmpfs /dev

 Arnout>  Does anyone know a more elegant solution?

Not really - Besides adding a devtmps_mount() call in kernel_init(), but
that's kind of icky as well.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2011-07-19 10:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19 10:22 [Buildroot] devtmpfs and initramfs Arnout Vandecappelle
2011-07-19 10:33 ` Peter Korsgaard [this message]
2011-07-19 11:23   ` Arnout Vandecappelle
2011-07-20  7:44     ` Diego Iastrubni
2011-07-20  8:01       ` Peter Korsgaard
2011-07-20  8:03       ` Arnout Vandecappelle
2011-07-20  8:15     ` Peter Korsgaard
2011-07-20  8:48       ` Diego Iastrubni
2011-07-20  8:57         ` Arnout Vandecappelle
2011-07-20 10:52           ` Peter Korsgaard
2011-07-20 11:00             ` Arnout Vandecappelle
2011-07-20 17:41               ` Peter Korsgaard
2011-07-20 15:10           ` Arnout Vandecappelle
2011-07-20 15:29             ` Peter Korsgaard

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=87aaca4l1y.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /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.