summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-10-01 18:41:04 +0200
committerHarald Hoyer <harald@redhat.com>2009-10-01 18:41:04 +0200
commit34debf18bf1f2f88633c1d7f88b3f805739c2685 (patch)
tree2b9febf0a9cc3bee8fefc21aa6d8866b62dec1b7
parent4592b6983a8a3879f75010629a0f6823eac912c0 (diff)
dracut: strip kernel modules which have no x bit set
-rwxr-xr-xdracut2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut b/dracut
index 3ab9292..3b7792a 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"