|
|
|
@ -210,6 +210,9 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
|
|
|
|
|
} else if lsb.ID == "Kylin" {
|
|
|
|
|
platform = "Kylin"
|
|
|
|
|
version = lsb.Release
|
|
|
|
|
} else if lsb.ID == `"Cumulus Linux"` {
|
|
|
|
|
platform = "cumuluslinux"
|
|
|
|
|
version = lsb.Release
|
|
|
|
|
} else {
|
|
|
|
|
if common.PathExistsWithContents("/usr/bin/raspi-config") {
|
|
|
|
|
platform = "raspbian"
|
|
|
|
@ -287,7 +290,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
|
|
|
|
|
platform = strings.Trim(platform, `"`)
|
|
|
|
|
|
|
|
|
|
switch platform {
|
|
|
|
|
case "debian", "ubuntu", "linuxmint", "raspbian":
|
|
|
|
|
case "debian", "ubuntu", "linuxmint", "raspbian", "Kylin", "cumuluslinux":
|
|
|
|
|
family = "debian"
|
|
|
|
|
case "fedora":
|
|
|
|
|
family = "fedora"
|
|
|
|
|