[lxc-devel] [PATCH 1/1] pivot_root: switch to a new mechanism (v2)

Andy Lutomirski luto at amacapital.net
Mon Sep 29 23:25:35 UTC 2014


On Mon, Sep 29, 2014 at 4:22 PM, Eric W. Biederman
<ebiederm at xmission.com> wrote:
> Andy Lutomirski <luto at amacapital.net> writes:
>
>> To me, this smells like MNT_DETACH does something awful when there are
>> mounts under the detached mount.
>>
>> For example:
>>
>> mount --rbind / /mnt
>> umount -l /mnt
>>
>> does *not* end well on my system.  I find it hard to believe that this
>> behavior is intentional.
>
> Hmm.  I think what is happening on your system is in some way related to
> mount propgatation and systemd.   On my debian stable system system it
> works without problems.

Try the variant with mount --make-rshared / first.  I reproduced it in
virtme, which doesn't use systemd -- it uses bash as its init daemon
:)

--Andy


More information about the lxc-devel mailing list