2
0
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:
Eugene Kolomeetz
2016-06-07 18:42:45 +03:00
committed by Pavel Emelyanov
parent 00f8b63b22
commit 73a24127e3

View File

@@ -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: