lxctl/lxctl — pull request #32 by spuzirev (2013-06-06 09:17:40+00:00)
Title: Fixed unmounting all mountpoints on stopping container

Lxctl tried to unmount rootfs mountpoint and internal mountpoints _before_ stopping container, so it cannot be achieved. It was look like this:

root@lxc01:~# lxctl stop wiki
umount: /var/lxc/root/wiki: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Can't umount /var/lxc/root/wiki !It seems that "wiki" is stopped now

Now Lxctl firstly tries to stop container and after that it tries to umount all mountpoints, internal and rootfs.

Another fix is about trailing slash in mountpoint. If you specified mountpoint containing trailing slash you cannot umount that mountpoint on stop. Now trailing slashes in --to option are stripped in mount module.