]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: strip kernel modules which have no x bit set
authorHarald Hoyer <harald@redhat.com>
Thu, 1 Oct 2009 16:41:04 +0000 (18:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 1 Oct 2009 16:41:04 +0000 (18:41 +0200)
dracut

diff --git a/dracut b/dracut
index 3ab92928c986f9afac74b6a72956599a0903f0b4..3b7792a05ec8d1ce9c93f41bd8188c6ddb8a5112 100755 (executable)
--- 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"