From 0062d8912cc9b5f38f99dddb5044f1ca58bdb8fa Mon Sep 17 00:00:00 2001 From: Marc Andre Tanner Date: Sat, 21 Nov 2009 22:42:03 +0100 Subject: [PATCH] Strip kernel modules Signed-off-by: Marc Andre Tanner --- initramfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initramfs.sh b/initramfs.sh index 326ab8a..233624d 100755 --- a/initramfs.sh +++ b/initramfs.sh @@ -12,9 +12,10 @@ if [ -z "$NO_STRIP" ]; then # strip all binaries ${STRIP} "$ROOT_DIR"/usr/{bin/*,sbin/*} 2> /dev/null find "$ROOT_DIR/usr/lib" -name '*.so' | xargs ${STRIP} --strip-unneeded 2>/dev/null + find "$ROOT_DIR/lib/modules" -name '*.ko' | xargs ${STRIP} # remove libthread_db which is used for cross debuging with gdb - rm "$ROOT_DIR/lib/libthread_db*" + rm -f "$ROOT_DIR"/lib/libthread_db* fi # generate file with the contents of the initramfs it's later used -- 2.11.4.GIT