public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Bodo Eggert <7eggert@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3][try 1] init: enable system-on-initramfs
Date: Fri, 13 Jul 2007 12:47:55 -0700	[thread overview]
Message-ID: <4697D6EB.5020404@zytor.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0707132039080.3222@be1.lrz>

Bodo Eggert wrote:
> I toyed with setting up a diskless system in initramfs. In the process, I
> came across some things:
> 
> 1)  There is no way to have the kernel not mount a filesystem,
>     unless you use /init or rdinit=.

And?  Just use rdinit=/sbin/init and no patch is needed.

> 2a) I figured if you prepared the root fs to contain a running system, you
>     woud probably also set up a runnable system on it. Therefore I changed
>     the default to boot from tmpfs if there was no /init nor a root= option.
>     (If there is a /init, it will be executed as usural.)
> 
>     Unfortunately the way I do it, this will override the rdev setting, but
>     that should be OK, since rdev is dead. Isn't it?

That's pretty hideous.  There shouldn't be a need for doing that.

rdev, unfortunately, isn't dead -- it lives on in the form of
/proc/sys/kernel/real-root-dev, as I found out doing the klibc set.

	-hpa

  parent reply	other threads:[~2007-07-13 19:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13 18:56 [PATCH 0/3][try 1] init: enable system-on-initramfs Bodo Eggert
2007-07-13 18:59 ` [PATCH 1/3][try 1] init: enable system-on-initramfs: enable root=rootfs Bodo Eggert
2007-07-13 19:00 ` [PATCH 2/3][try 1] init: enable system-on-initramfs: root-on-tmpfs Bodo Eggert
2007-07-13 19:02 ` [PATCH 3/3][try 1] init: enable system-on-initramfs: make mount-on-boot optional Bodo Eggert
2007-07-13 19:47 ` H. Peter Anvin [this message]
2007-07-13 22:37   ` [PATCH 0/3][try 1] init: enable system-on-initramfs Bodo Eggert
2007-07-13 22:50     ` H. Peter Anvin
2007-07-14 15:20       ` Bodo Eggert
2007-07-14 18:45         ` H. Peter Anvin
2007-07-14 19:46           ` Bodo Eggert
2007-07-14 20:35             ` H. Peter Anvin
2007-07-15  1:58               ` Bodo Eggert
2007-07-18 21:54 ` Rob Landley
2007-07-19 13:56   ` Bodo Eggert
2007-07-19 14:41     ` Stephen Smalley
2007-07-19 17:22       ` Bodo Eggert
2007-07-28 16:07     ` Rob Landley
     [not found] <8GGkX-2Xv-5@gated-at.bofh.it>
2007-07-14 18:49 ` [PATCH 2/3][try 1] init: enable system-on-initramfs: root-on-tmpfs Bodo Eggert
2007-07-15  5:24   ` [PATCH 0/3][try 1] init: enable system-on-initramfs Al Boldi

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=4697D6EB.5020404@zytor.com \
    --to=hpa@zytor.com \
    --cc=7eggert@gmx.de \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox