in lib/ec2macosinit/config.go [93:105]
func (c *InitConfig) RetriesExceeded() (exceeded bool, err error) {
// Check for the existence of the temporary file and get the current fatal count
err = c.FatalCounts.readFatalCount()
if err != nil {
return false, fmt.Errorf("ec2macosinit: unable to read fatal counts: %s", err)
}
// If there have been more than the limit of fatal exits, return true
if c.FatalCounts.Count > PerBootFatalLimit {
return true, nil
}
// Otherwise, continue
return false, nil
}