mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
scripts: terminate systemd-autofs-restart.sh if saved mountpoint is missing
restore_mountpoint() should never be called without saved mountpoint. If this happens, this is bug in script logic, which needs fixing. https://jira.sw.ru/browse/PSBM-44207 Signed-off-by: Eugene Kolomeetz <klm@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
73a24127e3
commit
df5f0262ca
@@ -107,7 +107,7 @@ function save_mountpoint {
|
||||
function restore_mountpoint {
|
||||
local mountpoint=$1
|
||||
|
||||
[ -n "$bindmount" ] || exit 0
|
||||
[ -n "$bindmount" ] || exit 1
|
||||
|
||||
# Umount file system, remounted by systemd, if any
|
||||
if ! check_fs_type $mountpoint "autofs"; then
|
||||
|
Reference in New Issue
Block a user