dracut.sh: simplify the "find" for files with the x bit

'(' -perm -0100 -or -perm -0010 -or -perm -0001 ')'
is the same as
-perm /0111
master
Harald Hoyer 2015-01-22 15:58:20 +01:00
parent 9dc0c244b8
commit f182cb9599
1 changed files with 1 additions and 3 deletions

View File

@ -1470,9 +1470,7 @@ if [[ $kernel_only != yes ]]; then

if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then
dinfo "*** Resolving executable dependencies ***"
find "$initdir" -type f \
'(' -perm -0100 -or -perm -0010 -or -perm -0001 ')' \
-not -path '*.ko' -print0 \
find "$initdir" -type f -perm /0111 -not -path '*.ko' -print0 \
| xargs -r -0 $DRACUT_INSTALL ${initdir:+-D "$initdir"} -R ${DRACUT_FIPS_MODE:+-H} --
dinfo "*** Resolving executable dependencies done***"
fi