]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions:inst_binary() bail out early if target exists
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 16:13:32 +0000 (17:13 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 16:13:32 +0000 (17:13 +0100)
dracut-functions

index c675e04352bcaf75ca54fcd6f79d392778796335..f744f1a218d2ea5925e48a4f429f48dbe5ae4d66 100755 (executable)
@@ -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[^ ]*)'