2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00

systemd-autofs-restart.sh: do not treat absence on bindmount as error

There can be autofs direct mount point without target mount on top.
In this case there won't be any bindmount and nothing to restore on top of the
autofs mount point.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Stanislav Kinsburskiy 2016-08-05 17:31:00 +03:00 committed by Pavel Emelyanov
parent 034bfe16c9
commit 6e89dbbfcc

View File

@ -107,7 +107,7 @@ function save_mountpoint {
function restore_mountpoint {
local mountpoint=$1
[ -n "$bindmount" ] || exit 1
[ -n "$bindmount" ] || return
# Umount file system, remounted by systemd, if any
if ! check_fs_type $mountpoint "autofs"; then