From 99e2d4157f60ca86e838908f804191fda814a69d Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 23 May 2023 19:18:51 -0400 Subject: [PATCH] Enabling confidential file exclusion --- cpstage4.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cpstage4.sh b/cpstage4.sh index 4236ea3..4a5a882 100755 --- a/cpstage4.sh +++ b/cpstage4.sh @@ -146,6 +146,13 @@ then EXCLUDES+=("--exclude=${TARGET}boot/*") fi +if ((EXCLUDE_CONFIDENTIAL)) +then + EXCLUDES+=("--exclude=${TARGET}home/*/.bash_history") + EXCLUDES+=("--exclude=${TARGET}root/.bash_history") + EXCLUDES+=("--exclude=${TARGET}var/lib/connman/*") +fi + if ((EXCLUDE_LOST)) then EXCLUDES+=("--exclude=lost+found")