From f3f267e8f902ac31ed42ff0b76c090033274c822 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 29 Aug 2012 16:07:59 +0000 Subject: base: don't strip kernel modules It looks like the strip invocation used here strips all symbols, even when you ask for it to strip a specific section. Exclude kernel modules from this so that they can still be loaded. Hopefully this will be the last oddity caused by minidebuginfo-stripping. If it causes much more trouble we should consider not doing this strip at all. --- diff --git a/modules/base/kspost.50.stripdebug.nochroot.inc b/modules/base/kspost.50.stripdebug.nochroot.inc index 11b6b3a..cc1c36f 100644 --- a/modules/base/kspost.50.stripdebug.nochroot.inc +++ b/modules/base/kspost.50.stripdebug.nochroot.inc @@ -1,4 +1,4 @@ -find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f | while read file; do +find $INSTALL_ROOT/usr/{sbin,bin,lib,libexec} -xdev -type f -and ! -name '*.ko' | while read file; do ftype=$(file -b "$file") [ "${ftype:0:4}" = "ELF " ] && strip -R .gnu_debugdata "$file" || : done -- cgit v0.9.1