Skip to content

Commit

Permalink
Merge pull request #1561 from keeword/master
Browse files Browse the repository at this point in the history
add deepin and uos distro
  • Loading branch information
shirou authored Dec 17, 2023
2 parents f308985 + 0de2d14 commit 108235a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion host/host_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
} else if lsb.ID == `"Cumulus Linux"` {
platform = "cumuluslinux"
version = lsb.Release
} else if lsb.ID == "uos" {
platform = "uos"
version = lsb.Release
} else if lsb.ID == "Deepin" {
platform = "Deepin"
version = lsb.Release
} else {
if common.PathExistsWithContents("/usr/bin/raspi-config") {
platform = "raspbian"
Expand Down Expand Up @@ -289,7 +295,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
platform = strings.Trim(platform, `"`)

switch platform {
case "debian", "ubuntu", "linuxmint", "raspbian", "Kylin", "cumuluslinux":
case "debian", "ubuntu", "linuxmint", "raspbian", "Kylin", "cumuluslinux", "uos", "Deepin":
family = "debian"
case "fedora":
family = "fedora"
Expand Down

0 comments on commit 108235a

Please sign in to comment.