diff options
author | Harald Hoyer <harald@redhat.com> | 2009-10-01 18:41:04 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-10-01 18:41:04 +0200 |
commit | 34debf18bf1f2f88633c1d7f88b3f805739c2685 (patch) | |
tree | 2b9febf0a9cc3bee8fefc21aa6d8866b62dec1b7 | |
parent | 4592b6983a8a3879f75010629a0f6823eac912c0 (diff) |
dracut: strip kernel modules which have no x bit set
-rwxr-xr-x | dracut | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |