Commit 6e89dbbf authored by Stanislav Kinsburskiy's avatar Stanislav Kinsburskiy Committed by Pavel Emelyanov

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: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 034bfe16
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment