From: Harald Hoyer Date: Tue, 7 Feb 2012 16:13:32 +0000 (+0100) Subject: dracut-functions:inst_binary() bail out early if target exists X-Git-Tag: 015~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bdc01c9a53c1d9d4a6eaedae54ed66b9f4fc89d;p=thirdparty%2Fdracut.git dracut-functions:inst_binary() bail out early if target exists --- diff --git a/dracut-functions b/dracut-functions index c675e0435..f744f1a21 100755 --- a/dracut-functions +++ b/dracut-functions @@ -441,8 +441,8 @@ inst_binary() { _bin=$(find_binary "$1") || return 1 _target=${2:-$_bin} - inst_symlink $_bin $_target && return 0 [[ -e $initdir/$_target ]] && return 0 + inst_symlink $_bin $_target && return 0 # If the binary being installed is also a library, add it to the loop. _so_regex='([^ ]*/lib[^/]*/[^ ]*\.so[^ ]*)'