mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
scripts: return non zero if save_mountpoint() fails
In such case, we must not proceed: without saved mountpoint, we risk losing data when restarting automount service (think about tmpfs). Currently, zero will be returned as exit status of preceeding echo. 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
00f8b63b22
commit
73a24127e3
@@ -96,7 +96,7 @@ function save_mountpoint {
|
||||
bindmount=$($JOIN_CT mktemp -d)
|
||||
if [ -z "$bindmount" ]; then
|
||||
echo "Failed to create temporary directory"
|
||||
return
|
||||
return 1
|
||||
fi
|
||||
|
||||
# No need to unmount fs on top of autofs:
|
||||
|
Reference in New Issue
Block a user