All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric <ebrower@usa.net>
To: linux-kernel@vger.kernel.org
Subject: Re: [Q] pivot_root and initrd
Date: Tue, 23 Oct 2001 14:54:39 -0700	[thread overview]
Message-ID: <3BD5E71F.6090506@usa.net> (raw)
In-Reply-To: <p05100328b7fb8dcb9473@[207.213.214.37]>

Both the pivot_root(8) manpage and the <linux>/Documentation/initrd.txt 
document admonish us to do much more than shown below (chroot, relative 
pathing of pivot_root arguments, etc).

I certainly trust HPA's example, but it is a far sight from the
'documented' procedure.  If the pivot_root developers expect
everyone in the world who depended previously on an implicit
change_root to modify their procedures,  they have the
responsibility to see that the "better way" is understood.

If HPA's example is adequate the documentation should be modified.

E

H. Peter Anvin wrote:
> Richard B. Johnson wrote:
> 
>>
>>  Presently, when /initrd/{ash.static} runs off the end of the
>>   /initrd/linuxrc script, the kernel tries to mount the root
>>  defined for LILO. So I add some program that executes 'pivot-root'
>>  instead of just letting the script run off the end?
>>
> 
> 
> You do something like:
> 
> cd /newroot
> pivot_root /newroot /newroot/oldroot
> exec /sbin/init < /dev/console > /dev/console 2>&1
> 
> -


       reply	other threads:[~2001-10-23 21:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <p05100328b7fb8dcb9473@[207.213.214.37]>
2001-10-23 21:54 ` Eric [this message]
2001-10-24  0:20   ` [Q] pivot_root and initrd Werner Almesberger
     [not found] <p05100304b80cbe9cf127@[10.128.7.49]>
2001-11-06  0:05 ` Eric
2001-10-23 17:42 Eric
2001-10-23 18:14 ` H. Peter Anvin
2001-10-23 19:54   ` bill davidsen
2001-10-23 19:59     ` Rik van Riel
2001-10-23 20:21       ` bill davidsen
2001-10-23 21:00         ` H. Peter Anvin
2001-10-23 20:37   ` Werner Almesberger
2001-10-23 20:46     ` Richard B. Johnson
2001-10-23 20:52       ` H. Peter Anvin
2001-10-23 21:05         ` Richard B. Johnson
2001-10-23 21:06           ` H. Peter Anvin
     [not found] <p05100300b7f2b3b94b17@[10.128.7.49]>
2001-10-17 18:34 ` Eric
2001-10-17 21:17   ` H. Peter Anvin
2001-10-27 12:45   ` Kai Henningsen
2001-11-05 21:52     ` Andreas Schwab
  -- strict thread matches above, loose matches on Subject: below --
2001-10-17  2:16 Eric
2001-10-17  3:30 ` 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=3BD5E71F.6090506@usa.net \
    --to=ebrower@usa.net \
    --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.