From 9c0a0f7af78c569292b7c125a37c024584063e8a Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 7 Jul 2023 16:02:25 +0200 Subject: [PATCH] overlay coreos-base/coreos-oem-gce: Drop python test package The /usr/lib/python*/test directory grew from 70mb in python3.10 to 118mb in python 3.11. Kill this directory - this hopefully will make the ACI image small enough to fit into the OEM partition again. --- .../coreos-base/coreos-oem-gce/files/manglefs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-oem-gce/files/manglefs.sh b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-oem-gce/files/manglefs.sh index ac499577bb..eab042ad0d 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-oem-gce/files/manglefs.sh +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-oem-gce/files/manglefs.sh @@ -52,3 +52,6 @@ EOF # Don't bundle these paths, since they are useless to us. mv usr/lib/systemd/lib*.so* usr/lib64/ rm -fr boot etc/* usr/lib/systemd var/db/pkg + +# Remove test stuff from python - it's quite large. +rm -rf usr/lib/python*/test