[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
** Tags added: systemd-boot ** Summary changed: - While sbuilding in LXC, systemd loops attempting to umount the underlay + LXC with r/w sys and udev keeps trying to unmount bind mounts -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: LXC with r/w sys and udev keeps trying to unmount bind mounts To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
First patch was nack'ed; second proposal: http://lists.freedesktop.org/archives/systemd-devel/2015-May/031893.html Attaching an updated /lib/systemd/systemd with those patches (amd64). ** Attachment added: /lib/systemd/systemd with proposed fix (v2) https://bugs.launchpad.net/systemd/+bug/102/+attachment/4398907/+files/systemd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
On Thu, May 14, 2015 at 10:55:50AM -, Martin Pitt wrote: I proposed a patch for this upstream: http://lists.freedesktop.org/archives/systemd-devel/2015-May/031718.html Iain, it would be great if you could confirm that it works for you as well? I attach a patched amd64 /lib/systemd/systemd binary, in case that's useful for you. Cheers Martin. I applied that patch to Ubuntu's systemd package and started the container with that. Happy to report that it seems to work fine for me. The mounts stay intact as they are supposed to. -- Iain Lane [ i...@orangesquash.org.uk ] Debian Developer [ la...@debian.org ] Ubuntu Developer [ la...@ubuntu.com ] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
I proposed a patch for this upstream: http://lists.freedesktop.org/archives/systemd-devel/2015-May/031718.html Iain, it would be great if you could confirm that it works for you as well? I attach a patched amd64 /lib/systemd/systemd binary, in case that's useful for you. ** Attachment added: /lib/systemd/systemd with proposed fix https://bugs.launchpad.net/systemd/+bug/102/+attachment/4397421/+files/systemd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
FTR: pull in http://cgit.freedesktop.org/systemd/systemd/commit/?id=7ba2711d (not sufficient, but should also help) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
In my local container, http://cgit.freedesktop.org/systemd/systemd/commit/?id=f62009410 (which was the fix in the above PPA) helps already. However, it doesn't in the cloud instance: The main difference there is that in that cloud instance udev is running while in my local container it isn't (it's not usually meant to run in LXC). Adding these options in the container starts udev and reproduces this issue again: lxc.mount.auto = sys:rw cgroup lxc.mount.entry = /etc/schroot /srv/lxc/test/rootfs/etc/schroot none bind 0 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
** Changed in: systemd (Ubuntu) Milestone: vivid-updates = None -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1444402] Re: While sbuilding in LXC, systemd loops attempting to umount the underlay
Simpler reproducer: - Create a vivid container, and set lxc.aa_profile = unconfined - Start the container - Run mount -v -o bind /bin /mnt Mai 06 09:17:08 test systemd[1]: Unit mnt.mount is bound to inactive unit dev-sda3.device. Stopping, too. Mai 06 09:17:08 test systemd[1]: Unmounting /mnt... Mai 06 09:17:08 test systemd[1]: Unmounted /mnt. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/102 Title: While sbuilding in LXC, systemd loops attempting to umount the underlay To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/102/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs