]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix incomplete destruction of unprivileged ephemeral containers
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Apr 2015 16:11:25 +0000 (12:11 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 10 Apr 2015 15:29:01 +0000 (11:29 -0400)
commitf40960a3a3bb4a1a9433fe61a873b7ffc5e57db9
tree2c7494469b530071db6b341085dcf13ab6f811dc
parent43018c9088a9e9127c2297e69f88d35b0238b23c
Fix incomplete destruction of unprivileged ephemeral containers

If an unprivileged ephemeral container is started as follows,

    lxc-start-ephemeral -o trusty -n test_ephemeral

Then an empty directory remains upon exit from the container,

    ~/.local/share/lxc/test_ephemeral/tmpfs/delta0

(The tmpfs filesystem is successfully unmounted, but we seem to lack
permission to delete the delta0 directory).

This issue arose following commits 4799a1e and dd2271e .

The following patch resolves the issue. It has been tested on ubuntu
14.04 with the lxc-daily ppa.
Since gmail screws up the formatting of the patch via line-wrapping
etc, please copy the patch from the issue-tracker rather than from
this email.

Signed-off by: Oleg Freedholm <overlayfs@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-start-ephemeral.in