From 95bfb6171c72073d944f8866cf0b60d88d18581a Mon Sep 17 00:00:00 2001 From: Sean Walberg Date: Mon, 15 Oct 2018 09:29:10 -0400 Subject: [PATCH] Don't use -C option in tar, extract and mv instead That `tar -xvf containerd-1.2.0-rc.0.linux-amd64.tar.gz -C /bin` cleans out `/bin` before extracting on CentOS 7, leaving the system in a useless state (`ls`? Who needs `ls`?). Instead, this extracts the files and moves them to their new spot much like the other commands in this step. --- docs/09-bootstrapping-kubernetes-workers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/09-bootstrapping-kubernetes-workers.md b/docs/09-bootstrapping-kubernetes-workers.md index bec4960..8f09487 100644 --- a/docs/09-bootstrapping-kubernetes-workers.md +++ b/docs/09-bootstrapping-kubernetes-workers.md @@ -63,7 +63,8 @@ Install the worker binaries: sudo mv kubectl kube-proxy kubelet runc runsc /usr/local/bin/ sudo tar -xvf crictl-v1.12.0-linux-amd64.tar.gz -C /usr/local/bin/ sudo tar -xvf cni-plugins-amd64-v0.6.0.tgz -C /opt/cni/bin/ - sudo tar -xvf containerd-1.2.0-rc.0.linux-amd64.tar.gz -C / + tar --strip-components=1 -xvf containerd-1.2.0-rc.0.linux-amd64.tar.gz + sudo mv containerd containerd-release containerd-shim containerd-shim-runc-v1 containerd-stress ctr /bin } ```