systemd-autofs-restart.sh: fix error handling in case of system limitation
systemd-autofs-restart.sh: fix error handling in case of system limitation

Without this patch any error in check_fs_type function is considered as a
grant to process to bind-mount.
This patch splits mount point fs type discovering and comparison to autofs
type, thus allowing to check for discovery errors.

Signed-off-by: Stanislav Kinsburskiy <43b28e187c4fe6e53d7ab0bb71957481e322f182@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@virtuozzo.com>

KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote,KKoukiou/criu-remote