diff --git a/pkg/minikube/firewall/firewall.go b/pkg/minikube/firewall/firewall.go index f62b3119969a..f992f837c5e3 100644 --- a/pkg/minikube/firewall/firewall.go +++ b/pkg/minikube/firewall/firewall.go @@ -21,6 +21,7 @@ import ( "os/exec" "regexp" "runtime" + "slices" "strings" "github.com/spf13/viper" @@ -65,7 +66,7 @@ func UnblockBootpd() error { cmdString.WriteString(fmt.Sprintf(" $ %s \n", strings.Join(c.Args, " "))) } - out.Styled(style.Permissions, "Your firewall is blocking bootpd which is required for socket_vmnet. The following commands will be executed to unblock bootpd:\n\n{{.commands}}\n", out.V{"commands": cmdString.String()}) + out.Styled(style.Permissions, "Your firewall is blocking bootpd which is required for this configuration. The following commands will be executed to unblock bootpd:\n\n{{.commands}}\n", out.V{"commands": cmdString.String()}) for _, c := range cmds { testArgs := append([]string{"-n"}, c.Args[1:]...) @@ -75,6 +76,7 @@ func UnblockBootpd() error { klog.Infof("%v may require a password: %v", c.Args, err) if !viper.GetBool("interactive") { klog.Warningf("%s requires a password, and --interactive=false", c.Args) + c.Args = slices.Insert(c.Args, 1, "-n") } } klog.Infof("running: %s", c.Args)