From c211601ec420abbc1161eb44db60635f9fe2608e Mon Sep 17 00:00:00 2001 From: Pablo Caderno Date: Tue, 13 Jul 2021 20:38:08 +1000 Subject: [PATCH] Added restart command after setting crio options --- pkg/provision/provision.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provision/provision.go b/pkg/provision/provision.go index 2e40a02fa6d2..5fa693bb4f75 100644 --- a/pkg/provision/provision.go +++ b/pkg/provision/provision.go @@ -254,7 +254,7 @@ CRIO_MINIKUBE_OPTIONS='{{ range .EngineOptions.InsecureRegistry }}--insecure-reg return err } - if _, err = p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s && printf %%s \"%s\" | sudo tee %s", path.Dir(crioOptsPath), crioOptsBuf.String(), crioOptsPath)); err != nil { + if _, err = p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s && printf %%s \"%s\" | sudo tee %s && sudo systemctl restart crio", path.Dir(crioOptsPath), crioOptsBuf.String(), crioOptsPath)); err != nil { return err }