mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
5afbbe5ce2
commit
56662c4ab2
1 changed files with 8 additions and 1 deletions
|
|
@ -122,7 +122,14 @@ function restore_mountpoint {
|
|||
[ -n "$bindmount" ] || return
|
||||
|
||||
# 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"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue