소스 검색

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 9 년 전
부모
커밋
54edfc41c6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hack/make.sh

+ 1 - 1
hack/make.sh

@@ -307,7 +307,7 @@ copy_containerd() {
         if [ -x /usr/local/bin/docker-runc ]; then
         if [ -x /usr/local/bin/docker-runc ]; then
             echo "Copying nested executables into $dir"
             echo "Copying nested executables into $dir"
 	    for file in containerd containerd-shim containerd-ctr runc; do
 	    for file in containerd containerd-shim containerd-ctr runc; do
-                cp "/usr/local/bin/docker-$file" "$dir/"
+                cp `which "docker-$file"` "$dir/"
                 if [ "$2" == "hash" ]; then
                 if [ "$2" == "hash" ]; then
                     hash_files "$dir/docker-$file"
                     hash_files "$dir/docker-$file"
 		fi
 		fi