]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: simplify the "find" for files with the x bit
authorHarald Hoyer <harald@redhat.com>
Thu, 22 Jan 2015 14:58:20 +0000 (15:58 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 22 Jan 2015 14:58:20 +0000 (15:58 +0100)
'(' -perm -0100 -or -perm -0010 -or -perm -0001 ')'
is the same as
-perm /0111

dracut.sh

index df016b6913fea3271906130fd8b878a57ff76b88..5e2feba97843fd549043f8f5ef6e8d412025ad0b 100755 (executable)
--- 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