From 9d65d853147a0ae966bc3f4eeda93cba5e075dad Mon Sep 17 00:00:00 2001 From: Ilya Zuyev Date: Fri, 11 Jun 2021 18:16:13 -0700 Subject: [PATCH] more debug stuff --- pkg/minikube/sysinit/systemd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/minikube/sysinit/systemd.go b/pkg/minikube/sysinit/systemd.go index e358edff8f..0c0e71413f 100644 --- a/pkg/minikube/sysinit/systemd.go +++ b/pkg/minikube/sysinit/systemd.go @@ -50,7 +50,9 @@ func (s *Systemd) Active(svc string) bool { // Disable disables a service func (s *Systemd) Disable(svc string) error { - _, err := s.r.RunCmd(exec.Command("sudo", "systemctl", "disable", svc)) + cmd := exec.Command("sudo", "systemctl", "disable", svc) + cmd.Env = append(cmd.Env, "SYSTEMCTL_SKIP_SYSV=1") + _, err := s.r.RunCmd(cmd) return err }