Skip to content

Commit 71c89dd

Browse files
committed
[release/1.6]: Vagrantfile: install failpoint binaries
Reduced patch, based on 419b5ab for the 1.6 branch. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4908fef commit 71c89dd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,19 @@ EOF
200200
SHELL
201201
end
202202

203+
config.vm.provision "install-failpoint-binaries", type: "shell", run: "once" do |sh|
204+
sh.upload_path = "/tmp/vagrant-install-failpoint-binaries"
205+
sh.inline = <<~SHELL
206+
#!/usr/bin/env bash
207+
source /etc/environment
208+
source /etc/profile.d/sh.local
209+
set -eux -o pipefail
210+
${GOPATH}/src/github.com/containerd/containerd/script/setup/install-failpoint-binaries
211+
chcon -v -t container_runtime_exec_t $(type -ap containerd-shim-runc-fp-v1)
212+
containerd-shim-runc-fp-v1 -v
213+
SHELL
214+
end
215+
203216
# SELinux is Enforcing by default.
204217
# To set SELinux as Disabled on a VM that has already been provisioned:
205218
# SELINUX=Disabled vagrant up --provision-with=selinux

0 commit comments

Comments
 (0)