[systemd-devel] Question about nspawn.c

Lennart Poettering lennart at poettering.net
Wed Aug 24 04:57:32 PDT 2011


On Wed, 24.08.11 11:41, Stef Bon (stefbon at gmail.com) wrote:

> 
> I see, but why the MS_MOVE?

In the namespace we are not interested anymore in the original mount. We
want to move it to our root dir.

> As I already tried to explain, a move is a little bit strange, you do
> not want to move the root.

Actually I do. Remember this is in the private namespace!

> Does the combination MS_BIND | MS_MOVE first do a bind, and moves that
> bind to the desired location?? If this is the case, it makes more
> sense.

Thinking about it I figure MS_MOVE might actually suffice. Not sure.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list