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 }