diff --git a/dracut.sh b/dracut.sh index df016b69..5e2feba9 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