[buildd-tools-devel] Bug#829125: schroot: schroot doesn't clean up its bind mounts if used concurrently
Dima Kogan
dkogan at debian.org
Sun Jul 3 02:43:30 UTC 2016
Hi. I just looked into this a bit more.
First off, I think we should unmount as many things as we can, instead
of giving up at the first failure. This is the first patch that is
attached.
For the bigger issue here, you are right. Systemd is at fault:
https://bugs.freedesktop.org/show_bug.cgi?id=81695
I won't claim to fully understand what's going on here, but the attached
second patch fixes the problem.
The duplicate mounts are created (presumably inside the kernel) without
extra mount() syscalls. Also for some reason zsh tickles this behavior,
but bash does not. I have several chroots that I use constantly with
zsh, and so I hit this issue very often. It would be great if some sort
of fix was deployed.
Sorry I couldn't provide more insight.
dima.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Unmount-everything-that-we-can-instead-of-giving-up-.patch
Type: text/x-diff
Size: 1100 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160702/8dce1147/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Disabled-bind-mount-propagation.patch
Type: text/x-diff
Size: 924 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160702/8dce1147/attachment-0001.patch>
More information about the Buildd-tools-devel
mailing list