Skip to content

Commit

Permalink
snapcraft: only try to strip criu if present
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 26, 2024
1 parent 3994162 commit ce50982
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1584,8 +1584,11 @@ parts:
-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
# added to the path with `snap set lxd`, like `criu.enable=true`
for binary in "${CRAFT_PRIME}/criu/criu"; do
[ -e "${binary}" ] || continue
strip -s "${binary}"
done
# Strip all versions of zfs utils
for v in "${CRAFT_PRIME}"/zfs-*; do
Expand Down

0 comments on commit ce50982

Please sign in to comment.