]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: fixed stripping of kernel modules
authorHarald Hoyer <harald@redhat.com>
Tue, 20 Jul 2010 09:24:37 +0000 (11:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 Jul 2010 09:24:37 +0000 (11:24 +0200)
dracut

diff --git a/dracut b/dracut
index 6b590f54c7a7dbdacf8611b19f7cc35113f338b3..0a715746afa3865065e840a4548b1535314d3338 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -296,7 +296,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 -or -path '/lib/modules/*.ko' \) ); do
+    for f in $(find "$initdir" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 -or -path '*/lib/modules/*.ko' \) ); do
        dinfo "Stripping $f"
        strip -g "$f" 2>/dev/null|| :
         #