From ab815e4de8e95d5cb52dd3438086c145a60c48d1 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 8 May 2025 16:51:26 +0200 Subject: [PATCH] overlay coreos/config: Add further modifications to sys-process/audit Signed-off-by: Krzesimir Nowak --- .../coreos-overlay/coreos/config/env/sys-process/audit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-process/audit b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-process/audit index 198fa84ebf..22abec26e0 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-process/audit +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-process/audit @@ -2,3 +2,7 @@ # in coreos-base/misc-files. Also skip installing legacy initscripts # stuff in /usr/libexec. INSTALL_MASK+=" /etc/audit/audit.rules* /usr/libexec " +# Skip installing python stuff in production images +if [[ $(flatcar_target) = 'generic-prod' ]]; then + INSTALL_MASK+=" /usr/lib/python* " +fi