From 34debf18bf1f2f88633c1d7f88b3f805739c2685 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 1 Oct 2009 18:41:04 +0200 Subject: [PATCH] dracut: strip kernel modules which have no x bit set --- dracut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut b/dracut index 3ab92928..3b7792a0 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"