diff options
-rw-r--r-- | modules/base/kspost.50.stripdebug.nochroot.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/base/kspost.50.stripdebug.nochroot.inc b/modules/base/kspost.50.stripdebug.nochroot.inc new file mode 100644 index 0000000..11b6b3a --- /dev/null +++ b/modules/base/kspost.50.stripdebug.nochroot.inc @@ -0,0 +1,5 @@ +find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f | while read file; do + ftype=$(file -b "$file") + [ "${ftype:0:4}" = "ELF " ] && strip -R .gnu_debugdata "$file" || : +done +exit 0 |