From 314b8b12a6d07d00b199873eb3803123331f2444 Mon Sep 17 00:00:00 2001 From: Alexander Mikhalitsyn Date: Thu, 13 Jun 2024 15:02:38 +0200 Subject: [PATCH] snapcraft: don't strip LXCFS-related binaries We really need these for debugging crashes sometimes. Signed-off-by: Alexander Mikhalitsyn --- snapcraft.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index ce6d3bcb5..71dab1cd3 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -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" \ @@ -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 @@ -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