Re: one partition/filesystem, many root trees

phil-news-nospam_at_ipal.net
Date: 04/05/05


Date: 5 Apr 2005 08:07:39 GMT

On Fri, 01 Apr 2005 09:04:41 +0200 Kasper Dupont <kasperd@daimi.au.dk> wrote:

| The pivot_root call does not remove any mounts, it just
| rearranges them in the tree. So the executable will still
| exist, though in a new location.

What about existing mounts that are underneat the new mount point,
such as:

    /
    /new
    /new/tmp

and I do pivot_root("/new","/new/old") ... will /new/tmp also be
correctly seen as /tmp from then on?

I think I can do what I want easy enough if I can set up the desired tree
completely before doing the pivot_root() call.

-- 
-----------------------------------------------------------------------------
| Phil Howard KA9WGN       | http://linuxhomepage.com/      http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


Relevant Pages