Re: Use of directories to hold root?
From: Al Viro
Date: Sun Aug 12 2007 - 16:23:33 EST
On Sun, Aug 12, 2007 at 09:49:02PM +0200, Jan Engelhardt wrote:
>
> On Aug 12 2007 15:39, Mark Cannon wrote:
> >> >> No, but you can use pivot_root.
> >> >
> >> >Or better yet, use an initramfs with MS_MOVE; same as you would with the
> >> >"normal" use of initramfs.
> >
> >I am not sure I understand initramfs with MS_MOVE concept. I will look into
> >it. Any pointers for documentation?
>
> pivot_root is atomic afaict, for `mount --move` (which I think Al meant
> which MS_MOVE - or some C program using mount(2) of your own), you'd
> need multiple calls to mount.
Move itself is done by a single syscall anyway...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/