Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Kylin OS found in /etc/os-release #1612

Open
WuMason opened this issue Mar 3, 2025 · 0 comments
Open

Unknown Kylin OS found in /etc/os-release #1612

WuMason opened this issue Mar 3, 2025 · 0 comments

Comments

@WuMason
Copy link

WuMason commented Mar 3, 2025

Is your feature request related to a problem? Please describe.
Message: Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the contents (cat /etc/os-release)

Describe the solution you'd like
Can you add support for Kylin V10?

cat /etc/os-release

NAME="Kylin Linux Advanced Server"
VERSION="V10 (Lance)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"
ANSI_COLOR="0;31"

Required changes
After adding it manually to the include/osdetection file, OS detection went fine.

                        "sles")
                            LINUX_VERSION="SLES"
                            OS_NAME="openSUSE"
                            OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                            OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                        ;;
+                        "kylin")
+                           LINUX_VERSION="Kylin"
+                            OS_NAME="Kylin Linux Advanced Server"
+                            OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+                            OS_VERSION_FULL=$(grep "^PRETTY_NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
+                        ;;
                        "ubuntu")
                            LINUX_VERSION="Ubuntu"
                            OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                            OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                            OS_NAME="Ubuntu"
                        ;;
@WuMason WuMason changed the title Unknown OS found in /etc/os-release Unknown Kylin OS found in /etc/os-release Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant