Skip to content

Commit

Permalink
snapcraft: don't strip LXCFS-related binaries
Browse files Browse the repository at this point in the history
We really need these for debugging crashes sometimes.

Signed-off-by: Alexander Mikhalitsyn <[email protected]>
  • Loading branch information
mihalicyn committed Jun 13, 2024
1 parent 7e409f5 commit 314b8b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ parts:
rm -rf "${CRAFT_PRIME}/usr/local/"
rm -rf "${CRAFT_PRIME}/usr/share/"
# Strip binaries (excluding shell scripts)
# Strip binaries (excluding shell scripts and LXCFS)
find "${CRAFT_PRIME}"/bin -type f \
-not -path "${CRAFT_PRIME}/bin/ceph" \
-not -path "${CRAFT_PRIME}/bin/editor" \
Expand All @@ -1537,6 +1537,7 @@ parts:
-not -path "${CRAFT_PRIME}/bin/sshfs" \
-not -path "${CRAFT_PRIME}/bin/xfs_admin" \
-not -path "${CRAFT_PRIME}/bin/uefivars.py" \
-not -path "${CRAFT_PRIME}/bin/lxcfs" \
-exec strip -s {} +
# Strip binaries not under bin/ due to being dynamically
Expand All @@ -1552,9 +1553,10 @@ parts:
find "${v}/" -type f -exec strip -s {} +
done
# Strip libraries (excluding python3 scripts)
# Strip libraries (excluding python3 scripts and liblxcfs)
find "${CRAFT_PRIME}"/lib -type f \
-not -path "${CRAFT_PRIME}/lib/python3/*" \
-not -path "${CRAFT_PRIME}/lib/liblxcfs.so" \
-exec strip -s {} +
if [ "$(uname -m)" != "riscv64" ]; then
Expand Down

0 comments on commit 314b8b1

Please sign in to comment.