Skip to content

Commit

Permalink
snapcraft: strip criu binary (5.9M -> 1.6M)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 25, 2024
1 parent de5ebb0 commit 27ed327
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27ed327

Please sign in to comment.