From: Harald Hoyer Date: Thu, 1 Oct 2009 16:41:04 +0000 (+0200) Subject: dracut: strip kernel modules which have no x bit set X-Git-Tag: 003~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34debf18bf1f2f88633c1d7f88b3f805739c2685;p=thirdparty%2Fdracut.git dracut: strip kernel modules which have no x bit set --- diff --git a/dracut b/dracut index 3ab92928c..3b7792a05 100755 --- a/dracut +++ b/dracut @@ -240,7 +240,7 @@ if [[ $do_strip = yes ]] ; then fi if [[ $do_strip = yes ]] ; then - for f in $(find "$initdir" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | + for f in $(find "$initdir" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 -or -path '/lib/modules/*.ko' \) -exec file {} \; | grep -v ' shared object,' | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'); do dinfo "Stripping $f"