From 6e89dbbfccd57e9b78f73e57c5c50f65b0430d39 Mon Sep 17 00:00:00 2001 From: Stanislav Kinsburskiy Date: Fri, 5 Aug 2016 17:31:00 +0300 Subject: [PATCH] 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 Signed-off-by: Pavel Emelyanov --- scripts/systemd-autofs-restart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh index 1b51a1268..01d9202cd 100755 --- a/scripts/systemd-autofs-restart.sh +++ b/scripts/systemd-autofs-restart.sh @@ -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