in lib/ec2macosinit/fatalcount.go [18:32]
func (r *FatalCount) readFatalCount() (err error) {
// Check if fatal count file exists, if not, create it but leave it empty, then return 0, otherwise read and return
_, err = os.Stat(fatalCountFile)
if !os.IsNotExist(err) {
err = r.readFatalFile()
if err != nil {
return fmt.Errorf("ec2macosinit: Failed to read %s: %s", fatalCountFile, err)
}
} else {
// Take initial values for first run
*r = FatalCount{1}
}
return nil
}