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