Commit 56662c4a authored by Stanislav Kinsburskiy's avatar Stanislav Kinsburskiy Committed by Pavel Emelyanov

systemd-autofs-restart.sh: fix issue with removed check_fs_type reference

"Check_fs_type" helper was repalce by "get_fs_type".
This reference is a silly mistake.
Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 5afbbe5c
...@@ -122,7 +122,14 @@ function restore_mountpoint { ...@@ -122,7 +122,14 @@ function restore_mountpoint {
[ -n "$bindmount" ] || return [ -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 top_mount_fs_type=$(get_fs_type $mountpoint)
if [ $? -ne 0 ]; then
echo "$top_mount_fs_type"
return
fi
# Nothing to do, if no file system is on top of autofs
if [ "$top_mount_fs_type" != "autofs" ]; then
$JOIN_CT umount $mountpoint || echo "Failed to umount $mountpoint" $JOIN_CT umount $mountpoint || echo "Failed to umount $mountpoint"
fi fi
......
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