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 OS found - gardenlinux #1507

Open
vassap2022 opened this issue Jun 10, 2024 · 0 comments
Open

Unknown OS found - gardenlinux #1507

vassap2022 opened this issue Jun 10, 2024 · 0 comments

Comments

@vassap2022
Copy link

Describe the bug
Unknown OS found in /etc/os-release

Version

  • Distribution
cat /etc/os-release
ID=gardenlinux
NAME="Garden Linux"
PRETTY_NAME="Garden Linux 1443.3"
HOME_URL="https://gardenlinux.io"
SUPPORT_URL="https://github.com/gardenlinux/gardenlinux"
BUG_REPORT_URL="https://github.com/gardenlinux/gardenlinux/issues"
GARDENLINUX_VERSION=1443.3
GARDENLINUX_COMMIT_ID=c261f887
GARDENLINUX_COMMIT_ID_LONG=c261f8879008bcc481ba49570524cfd9734c4d54

Expected behavior
the following error should not appear.

Output
Exception found!

Function/test: [OS Detection]
Message: Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): https://github.com/CISOfy/lynis

Help improving the Lynis community with your feedback!

Additional context
This issue is similar to #1490. However, this request is about https://github.com/gardenlinux/gardenlinux. I assume that a change similar to this should be fine:

                        "gardenlinux")
                            LINUX_VERSION="Garden Linux"
                            LINUX_VERSION_LIKE="Debian"
                            OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                            OS_VERSION=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')
                            OS_VERSION_FULL=$(grep "^GARDENLINUX_VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"')

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