Browse code

Improve source for containerd/runc copy

This improves getting the source for the binaries that are compiled on
the system so that they can be copied into the bundles output.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>

Michael Crosby authored on 2016/04/12 04:02:01
Showing 1 changed files
... ...
@@ -307,7 +307,7 @@ copy_containerd() {
307 307
         if [ -x /usr/local/bin/docker-runc ]; then
308 308
             echo "Copying nested executables into $dir"
309 309
 	    for file in containerd containerd-shim containerd-ctr runc; do
310
-                cp "/usr/local/bin/docker-$file" "$dir/"
310
+                cp `which "docker-$file"` "$dir/"
311 311
                 if [ "$2" == "hash" ]; then
312 312
                     hash_files "$dir/docker-$file"
313 313
 		fi