dracut-functions: change search path for find_binary

master
Harald Hoyer 2011-05-19 23:19:17 +02:00
parent c3b0d83ddf
commit 7db18ccd13
1 changed files with 1 additions and 1 deletions

View File

@ -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