Skip to content

Commit

Permalink
Merge pull request canonical#285 from simondeziel/strip-criu
Browse files Browse the repository at this point in the history
snapcraft: strip criu binary (5.9M -> 1.6M)
simondeziel authored Jan 25, 2024

Verified

This commit was signed with the committer’s verified signature.
oesteban Oscar Esteban
2 parents de5ebb0 + 27ed327 commit d512119
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
@@ -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

0 comments on commit d512119

Please sign in to comment.