From: Harald Hoyer Date: Wed, 27 Jun 2012 08:50:57 +0000 (+0200) Subject: dracut-functions: inst(),inst_binary() fixed inst_symlink call X-Git-Tag: 020~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92f26b6202332c5d808aaf7ed917a36b0530caa9;p=thirdparty%2Fdracut.git dracut-functions: inst(),inst_binary() fixed inst_symlink call --- diff --git a/dracut-functions.sh b/dracut-functions.sh index d53ec7b67..2c32e8dfb 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -426,7 +426,7 @@ inst_simple() { local _src=$1 _target="${2:-$1}" - [[ -L $_src ]] && return inst_symlink $_src $_target + [[ -L $_src ]] && { inst_symlink $_src $_target; return $?; } if ! [[ -d ${initdir}/$_target ]]; then [[ -e ${initdir}/$_target ]] && return 0 @@ -515,7 +515,7 @@ inst_binary() { _bin=$(find_binary "$1") || return 1 _target=${2:-$_bin} [[ -e $initdir/$_target ]] && return 0 - [[ -L $_bin ]] && inst_symlink $_bin $_target && return 0 + [[ -L $_bin ]] && { inst_symlink $_bin $_target; return $?; } local _file _line local _so_regex='([^ ]*/lib[^/]*/[^ ]*\.so[^ ]*)' # I love bash!