in providers/linux/os.go [310:329]
func linuxFamily(platform string) string {
if platform == "" {
return ""
}
platform = strings.ToLower(platform)
// First try a direct lookup.
if family, found := platformToFamilyMap[platform]; found {
return family
}
// Try prefix matching (e.g. opensuse matches opensuse-tumpleweed).
for platformPrefix, family := range platformToFamilyMap {
if strings.HasPrefix(platform, platformPrefix) {
return family
}
}
return ""
}