Comment 20 for bug 1444402

Revision history for this message
Martin Pitt (pitti) wrote :

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'