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

Make use of ID_LIKE from /etc/os-release for wider OS derivatives coverage #1530

Open
hiddenman opened this issue Aug 20, 2024 · 0 comments
Open

Comments

@hiddenman
Copy link

Is your feature request related to a problem? Please describe.
Lynis does not detect derivative OS automatically

Describe the solution you'd like
I'd like Lynis to detect OS as much as possible using common ways to do this

Required changes
osdetection script

Additional context
include/osdetection script relies on "ID=" parameter from /etc/os-release
However, there is a special "ID_LIKE=" option which shows what was the original OS for this derivative.

For example:

ID=neon
ID_LIKE="ubuntu debian"

As far as i understand, version detection is only used for choosing the correct package manager, may be something more (like config paths)
Using ID_LIKE in addition to ID will prevent posting tens of "bugs" here with the error "Unknown OS found in /etc/os-release"

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