Skip to content

Commit 108235a

Browse files
authored
Merge pull request #1561 from keeword/master
add deepin and uos distro
2 parents f308985 + 0de2d14 commit 108235a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

host/host_linux.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
212212
} else if lsb.ID == `"Cumulus Linux"` {
213213
platform = "cumuluslinux"
214214
version = lsb.Release
215+
} else if lsb.ID == "uos" {
216+
platform = "uos"
217+
version = lsb.Release
218+
} else if lsb.ID == "Deepin" {
219+
platform = "Deepin"
220+
version = lsb.Release
215221
} else {
216222
if common.PathExistsWithContents("/usr/bin/raspi-config") {
217223
platform = "raspbian"
@@ -289,7 +295,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil
289295
platform = strings.Trim(platform, `"`)
290296

291297
switch platform {
292-
case "debian", "ubuntu", "linuxmint", "raspbian", "Kylin", "cumuluslinux":
298+
case "debian", "ubuntu", "linuxmint", "raspbian", "Kylin", "cumuluslinux", "uos", "Deepin":
293299
family = "debian"
294300
case "fedora":
295301
family = "fedora"

0 commit comments

Comments
 (0)