From: Harald Hoyer Date: Thu, 19 May 2011 21:19:17 +0000 (+0200) Subject: dracut-functions: change search path for find_binary X-Git-Tag: 011~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7db18ccd137f98585283382334b55ffbeb09c18c;p=thirdparty%2Fdracut.git dracut-functions: change search path for find_binary --- diff --git a/dracut-functions b/dracut-functions index 86e2377f2..a9817c12d 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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