From: Harald Hoyer Date: Thu, 22 Jan 2015 14:58:20 +0000 (+0100) Subject: dracut.sh: simplify the "find" for files with the x bit X-Git-Tag: 041~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f182cb9599044fc3ee8f8bf6654d3710209ab6da;p=thirdparty%2Fdracut.git 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 --- diff --git a/dracut.sh b/dracut.sh index df016b691..5e2feba97 100755 --- a/dracut.sh +++ b/dracut.sh @@ -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