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

Closed
vassap2022 opened this issue Jun 10, 2024 · 4 comments · Fixed by #1556
Closed

Unknown OS found - gardenlinux #1507

vassap2022 opened this issue Jun 10, 2024 · 4 comments · Fixed by #1556
Assignees

Comments

@vassap2022
Copy link
Contributor

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 '"')

@mboelen
Copy link
Member

mboelen commented Oct 4, 2024

Thanks for sharing. Can you turn this into a pull request?

@vassap2022
Copy link
Contributor Author

Thanks for the comment. I opened #1556.

@mboelen
Copy link
Member

mboelen commented Oct 8, 2024

Thanks for the pull request. It has been merged.

@vassap2022
Copy link
Contributor Author

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants