[lxc-devel] [PATCH] [RFC] lxc: don't call pivot_root if / is on a ramfs

Serge Hallyn serge.hallyn at ubuntu.com
Wed Oct 8 14:44:48 UTC 2014


Quoting Andrew Vagin (avagin at gmail.com):
> Here is an updated patch.
> 
> Now ct->rootfs is bind-mounted into /, so we don't need to "bind-mount
> the root onto itself first".

Hm, interesting.  I thought MS_MOVE was central to the approach.

> What is about "do the turn-into-slave first"? I don't know.
> remount_all_slave() is called from do_rootfs_setup(). Is it enough?

Probably not, though one would *think* that any machine which has / on
ramfs doesn't have / ms_shared.  Anyway I was thinking
remount_all_slave() should be called before your new nf.


More information about the lxc-devel mailing list