Ensure all filesystems listed in /proc/mounts are unmounted
Ensure all filesystems listed in /proc/mounts are unmounted

The iterator function getmntent() is not stable. It may skip
entries if the contents of the iterated file changes, which
is the case with /proc/mounts when filesystems are unmounted.
As a result, some filesystems were never unmounted.

To fix this, iteratation is now restarted after every
sucessful unmount.

Signed-off-by: Robert Andersson <8f5f44453a0feb6dacf95f7d20d2f3a58dbd8078@atlascopco.com>
Signed-off-by: Ming Liu <070ee461bca4578ddd34d91eec07d1f455f3cdee@gmail.com>

troglobit/finit,troglobit/finit