Skip to content

Commit 2579c73

Browse files
authored
Merge pull request #3875 from steved/fix-change-user-none
fix CHANGE_MINIKUBE_NONE_USER regression from recent changes
2 parents 6751e39 + a94e0ac commit 2579c73

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: cmd/minikube/cmd/start.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ func runStart(cmd *cobra.Command, args []string) {
208208
console.Failure("Unable to load cached images from config file.")
209209
}
210210

211+
if config.MachineConfig.VMDriver == constants.DriverNone {
212+
console.OutStyle("starting-none", "Configuring local host environment ...")
213+
prepareNone()
214+
}
215+
211216
if kubeconfig.KeepContext {
212217
console.OutStyle("kubectl", "To connect to this cluster, use: kubectl --context=%s", kubeconfig.ClusterName)
213218
} else {
@@ -342,10 +347,6 @@ func startHost(api libmachine.API, mc cfg.MachineConfig) (*host.Host, bool) {
342347
if err != nil {
343348
exit.WithError("Failed to check if machine exists", err)
344349
}
345-
if mc.VMDriver == constants.DriverNone {
346-
console.OutStyle("starting-none", "Configuring local host environment ...")
347-
prepareNone()
348-
}
349350

350351
var host *host.Host
351352
start := func() (err error) {

0 commit comments

Comments
 (0)