public inbox for linux-kernel@vger.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: Sat, 1 Jan 2005 20:31:42 +0000 (UTC)	[thread overview]
Message-ID: <cr71be$1sv$1@terminus.zytor.com> (raw)
In-Reply-To: pan.2005.01.01.15.40.12.264342@dungeon.inka.de

Followup to:  <pan.2005.01.01.15.40.12.264342@dungeon.inka.de>
By author:    Andreas Jellinghaus <aj@dungeon.inka.de>
In newsgroup: linux.dev.kernel
>
> Hi,
> 
> run-init seems to mount the new root, rm files in the old root,
> mount, chroot, open the console, exec. any reason we can't do
> that in shell script commands?
>  
> > You don't pivot_root initramfs, because initramfs *IS* rootfs.
> > 
> > Instead, use the run-init program
> 
> ok, but still: is it ok for the kernel to die?
> after all pivot_root works fine, unless /initrd is unmounted.
> what exactly is the kernel internal that makes pivot_root special?
> 

Your /initrd here is rootfs, and by unmounting rootfs, you've pulled
the rug out from underneath the kernel any time it needs to spawn a
kernel thread.

	-hpa

      reply	other threads:[~2005-01-01 20:32 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
2005-01-01 15:40   ` Andreas Jellinghaus
2005-01-01 20:31     ` H. Peter Anvin [this message]

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='cr71be$1sv$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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox