diff --git a/pkg/osutil/user.go b/pkg/osutil/user.go index 40119aa0cf0..d5137736d2d 100644 --- a/pkg/osutil/user.go +++ b/pkg/osutil/user.go @@ -27,8 +27,8 @@ func LimaUser(warn bool) (*user.User, error) { if err := identifiers.Validate(cache.u.Username); err != nil { cache.warning = fmt.Sprintf("local user %q is not a valid Linux username: %v; using %q username instead", cache.u.Username, err, fallbackUser) + cache.u.Username = fallbackUser } - cache.u.Username = fallbackUser } }) if warn && cache.warning != "" {