From 3bdc01c9a53c1d9d4a6eaedae54ed66b9f4fc89d Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 7 Feb 2012 17:13:32 +0100 Subject: [PATCH] dracut-functions:inst_binary() bail out early if target exists --- dracut-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-functions b/dracut-functions index c675e043..f744f1a2 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[^ ]*)'