Refined command line to also verify that the tentative device *does*
move to "dead" once the last reference gets unmounted:

schroot -r -c session:schroot-wily-systemd -- make -j4 && sudo rm -f
/srv/lxc/test/rootfs/lib/systemd/systemd && sudo cp systemd
/srv/lxc/test/rootfs/lib/systemd/systemd && clear && sudo lxc-start -n
test && sleep 3 && sudo lxc-attach -n test -- sh -c 'systemctl show -p
Id,ActiveState,SubState,BindsTo,BoundBy dev-sda3.device; systemd-analyze
set-log-level debug; mkdir /tmp/etc /tmp/boot; mount -o bind /etc
/tmp/etc; mount -o bind /boot /tmp/boot; sleep 0.5; echo "----
unmounting /tmp/etc ----"; umount /tmp/etc; sleep 0.5; systemctl show -p
Id,ActiveState,SubState,BindsTo,BoundBy dev-sda3.device etc-
schroot.mount tmp-boot.mount; echo "---- umounting /tmp/boot ----";
umount /tmp/boot; sleep 0.5; systemctl show -p
Id,ActiveState,SubState,BindsTo,BoundBy dev-sda3.device etc-
schroot.mount tmp-boot.mount; systemd-analyze set-log-level info; mount
| egrep "/tmp/|/etc" || true; journalctl -b | grep -A10000 "Reached
target Graphical"; poweroff'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1444402

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/1444402/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to