From: "H. Peter Anvin" <hpa@zytor.com>
To: Arnd Hannemann <arnd@arndnet.de>
Cc: Jan Engelhardt <jengelh@computergmbh.de>,
Salvatore De Paolis <depaolis.salvatore@libero.it>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: pivot_root alternative
Date: Sun, 24 Jun 2007 20:59:36 -0700 [thread overview]
Message-ID: <467F3DA8.8030908@zytor.com> (raw)
In-Reply-To: <467EE48D.5010204@arndnet.de>
Arnd Hannemann wrote:
> Jan Engelhardt schrieb:
>> On Jun 24 2007 23:27, Salvatore De Paolis wrote:
>>> i built the kernel with a busybox initramfs which runs from a usb stick. While
>>> i boot i need to mount the real root and i'm using pivot_root.
>>> Pivot_root . old-root return to me an "Invalid argument" error and googling i
>>> found here http://lkml.org/lkml/2005/10/8/17 that pivot_root should be avoided.
>>> I want to ask now what i should do to switch to a real root?
>> use run-init from klibc?
>
> However be aware of the limitation of run-init:
> It only works for direct childs of root directory
> /mnt/newroot won't work
> /newroot should work ;-)
>
Hm, that should probably be fixed. It should be able to work on any
directory as long as there isn't another *filesystem* involved...
-hpa
next prev parent reply other threads:[~2007-06-25 4:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-24 21:27 pivot_root alternative Salvatore De Paolis
2007-06-24 21:29 ` Jan Engelhardt
2007-06-24 21:39 ` Arnd Hannemann
2007-06-24 22:08 ` Salvatore De Paolis
2007-06-25 10:19 ` Michael Tokarev
2007-06-25 3:59 ` H. Peter Anvin [this message]
2007-06-24 23:29 ` Kyle Moffett
2007-06-25 5:04 ` Salvatore De Paolis
-- strict thread matches above, loose matches on Subject: below --
2007-06-25 10:34 Salvatore De Paolis
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=467F3DA8.8030908@zytor.com \
--to=hpa@zytor.com \
--cc=arnd@arndnet.de \
--cc=depaolis.salvatore@libero.it \
--cc=jengelh@computergmbh.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