]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: change search path for find_binary
authorHarald Hoyer <harald@redhat.com>
Thu, 19 May 2011 21:19:17 +0000 (23:19 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 13:17:31 +0000 (15:17 +0200)
dracut-functions

index 86e2377f266e0b42a7ca4a0e322985bc88d7b467..a9817c12de955089518e4e44eb63ad204fd1351c 100755 (executable)
@@ -319,7 +319,7 @@ inst_library() {
 # find a binary.  If we were not passed the full path directly,
 # search in the usual places to find the binary.
 find_binary() {
-    local _binpath="/bin /sbin /usr/bin /usr/sbin" _p
+    local _binpath="/usr/sbin /sbin /usr/bin /bin" _p
     if [[ -z ${1##/*} ]]; then
         if [[ -x $1 ]] || ldd $1 &>/dev/null; then
             echo $1