mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-09 11:21:58 +01:00
build_library: Shrink the sysext-python image by removing python tests
Do the same thing we did for GCE and Azure.
This commit is contained in:
parent
131b56975f
commit
83c4cdcf44
@ -7,4 +7,14 @@ pushd "${rootfs}"
|
||||
|
||||
rm -rf ./usr/{lib/debug,share,include,lib64/pkgconfig}
|
||||
|
||||
# Remove test stuff from python - it's quite large.
|
||||
for p in ./usr/lib/python*; do
|
||||
if [[ ! -d ${p} ]]; then
|
||||
continue
|
||||
fi
|
||||
# find directories named tests or test and remove them (-prune
|
||||
# avoids searching below those directories)
|
||||
find "${p}" \( -name tests -o -name test \) -type d -prune -exec rm -rf '{}' '+'
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user