Commit a6641817 authored by Timo Teräs's avatar Timo Teräs

abuild: preserve all xattrs

by default getfattr omits system xattrs like security.capability
parent 248e9bb4
......@@ -1679,7 +1679,7 @@ stripbin() {
scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \
| sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \
| while read filename; do
XATTR=$(getfattr -d "${filename}")
XATTR=$(getfattr --match="*" --dump "${filename}")
${CROSS_COMPILE}strip "${filename}"
[ -n "$XATTR" ] && (echo "$XATTR" | setfattr --restore=-)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment