From bbf3426808f1e7fc05655f57dd450659094a9f64 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Mon, 8 Mar 2021 13:54:15 +0100 Subject: [PATCH] handle save_y2logs when content modified when creating tarball --- scripts/save_y2logs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/save_y2logs b/scripts/save_y2logs index 6a298c031..39fe2872f 100755 --- a/scripts/save_y2logs +++ b/scripts/save_y2logs @@ -147,6 +147,9 @@ err=$? rm -rf $TMPDIR +# tar returns 1 when content of tarball is older then current system. Happen when something still writting to logs or memsampler (bsc#1182710#c2) +[ $err == 1 ] && echo "Warning: logs modified during save. Yast is probably running. Content of tarball can be older then current content." >&2 && err=0 + [ $err != 0 ] && echo "FATAL: Error creating archive $TARGET" >&2 exit $err