]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test/TEST-04-FULL-SYSTEMD/test.sh: fix the find -perm
authorHarald Hoyer <harald@redhat.com>
Thu, 22 Jan 2015 15:00:50 +0000 (16:00 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 22 Jan 2015 15:00:50 +0000 (16:00 +0100)
"find -perm +111" should be "find -perm /0111" as it is deprecated since
a long time

test/TEST-04-FULL-SYSTEMD/test.sh

index 1ff0f0581c93fe5b2b18abdacca4511f68302ae7..b14d540e302a4161aed7443225b8180f6c990708 100755 (executable)
@@ -191,7 +191,7 @@ EOF
         # softlink mtab
         ln -fs /proc/self/mounts $initdir/etc/mtab
 
-        # install any Exec's from the service files
+        # install any Execs from the service files
         egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/lib/systemd/system/*.service \
             | while read i; do
             i=${i##Exec*=}; i=${i##-}
@@ -205,7 +205,7 @@ EOF
         cp -a /etc/ld.so.conf* $initdir/etc
         ldconfig -r "$initdir"
         ddebug "Strip binaeries"
-        find "$initdir" -perm +111 -type f | xargs -r strip --strip-unneeded | ddebug
+        find "$initdir" -perm /0111 -type f | xargs -r strip --strip-unneeded | ddebug
 
         # copy depmod files
         inst /lib/modules/$kernel/modules.order