From 27ed3277ea7e1b936b2db74af5e34fc5fea94727 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Thu, 25 Jan 2024 09:16:33 -0500 Subject: [PATCH] snapcraft: strip criu binary (5.9M -> 1.6M) Signed-off-by: Simon Deziel --- snapcraft.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snapcraft.yaml b/snapcraft.yaml index dcd3e8b0c..8f4083eaa 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -1591,6 +1591,10 @@ parts: -not -path "${CRAFT_PRIME}/bin/xfs_admin" \ -exec strip -s {} + + # Strip binaries not under bin/ due to being dynamically + # added to the path with `snap set lxd` + strip -s "${CRAFT_PRIME}/criu/criu" # snap set lxd criu.enable=true + # Strip all versions of zfs utils for v in "${CRAFT_PRIME}"/zfs-*; do [ -d "${v}" ] || continue