Skip to content

Commit 40e9649

Browse files
authored
Merge pull request #4309 from norio-nomura/fix-autostart-didnt-start-usernet
`limactl start`: Fix autostart registered instance did not start usernet.
2 parents c66925c + 8e9378d commit 40e9649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/limactl/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ func startAction(cmd *cobra.Command, args []string) error {
584584
// Network reconciliation will be performed by the process launched by the autostart manager
585585
if registered, err := autostart.IsRegistered(ctx, inst); err != nil && !errors.Is(err, autostart.ErrNotSupported) {
586586
return fmt.Errorf("failed to check if the autostart entry for instance %q is registered: %w", inst.Name, err)
587-
} else if !registered {
587+
} else if (registered && autostart.AutoStartedIdentifier() != "") || !registered {
588588
err = reconcile.Reconcile(ctx, inst.Name)
589589
if err != nil {
590590
return err

0 commit comments

Comments
 (0)