All of lore.kernel.org
 help / color / mirror / Atom feed
From: hpa@zytor.com (H. Peter Anvin)
To: linux-kernel@vger.kernel.org
Subject: Re: initramfs: is it supposed to work?
Date: Fri, 31 Dec 2004 08:06:03 +0000 (UTC)	[thread overview]
Message-ID: <cr319b$31b$1@terminus.zytor.com> (raw)
In-Reply-To: 41D4A2A6.3060607@tls.msk.ru

Followup to:  <41D4A2A6.3060607@tls.msk.ru>
By author:    Michael Tokarev <mjt@tls.msk.ru>
In newsgroup: linux.dev.kernel
> 
> o And finally, when booting the "right way", using initramfs where
> /init gets executed with pid=1 and should do the same pivot_root
> and things like that, before the umount loop mentioned above,
> it looks almost right:
>   rootfs /initrd rootfs ro 0 0
>   /dev/hda1 / ext3 rw 0 0
> (this is where eg umount from busybox chokes, also entering
> endless loop.. but tha's a different story, it's an obvious
> bug in busybox.. however in order to fix it properly one have
> to know which cases like the 3 mentioned above are possible).
> 

You don't pivot_root initramfs, because initramfs *IS* rootfs.

Instead, use the run-init program from the klibc distribution, or
something similar.  It cleans up the initramfs contents and overmounts
it with the new root filesystem.

	-hpa



  reply	other threads:[~2004-12-31  8:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-31  0:51 initramfs: is it supposed to work? Michael Tokarev
2004-12-31  8:06 ` H. Peter Anvin [this message]
2005-01-01 15:40   ` Andreas Jellinghaus
2005-01-01 20:31     ` H. Peter Anvin

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='cr319b$31b$1@terminus.zytor.com' \
    --to=hpa@zytor.com \
    --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 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.