mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +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:
committed by
Pavel Emelyanov
parent
034bfe16c9
commit
6e89dbbfcc
@@ -107,7 +107,7 @@ function save_mountpoint {
|
|||||||
function restore_mountpoint {
|
function restore_mountpoint {
|
||||||
local mountpoint=$1
|
local mountpoint=$1
|
||||||
|
|
||||||
[ -n "$bindmount" ] || exit 1
|
[ -n "$bindmount" ] || return
|
||||||
|
|
||||||
# Umount file system, remounted by systemd, if any
|
# Umount file system, remounted by systemd, if any
|
||||||
if ! check_fs_type $mountpoint "autofs"; then
|
if ! check_fs_type $mountpoint "autofs"; then
|
||||||
|
Reference in New Issue
Block a user