Skip to content

Commit

Permalink
vm: fix false inotify daemon warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abiosoft committed Mar 20, 2023
1 parent cb9810a commit f52df98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions environment/vm/lima/lima.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ func (l *limaVM) startDaemon(ctx context.Context, conf config.Config) (context.C
}

// check if inotify is running
if inotifyEnabled, _ := ctx.Value(ctxKeyInotify).(bool); !inotifyEnabled {
log.Warnln("error occured enabling inotify daemon")
if conf.MountINotify {
if inotifyEnabled, _ := ctx.Value(ctxKeyInotify).(bool); !inotifyEnabled {
log.Warnln("error occured enabling inotify daemon")
}
}

// preserve vmnet context
Expand Down

0 comments on commit f52df98

Please sign in to comment.