From add9158d4edbc38cc117f1b93c7d34a9669b89e3 Mon Sep 17 00:00:00 2001 From: N1neSun <917549681@qq.com> Date: Fri, 23 Sep 2022 16:23:47 +0800 Subject: [PATCH] fix some kylin linux bug --- host/host_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/host_linux.go b/host/host_linux.go index 940415c9..97d5451c 100644 --- a/host/host_linux.go +++ b/host/host_linux.go @@ -205,6 +205,9 @@ func PlatformInformationWithContext(ctx context.Context) (platform string, famil } else if lsb.ID == "LinuxMint" { platform = "linuxmint" version = lsb.Release + } else if lsb.ID == "Kylin" { + platform = "Kylin" + version = lsb.Release } else { if common.PathExistsWithContents("/usr/bin/raspi-config") { platform = "raspbian"