Make Debian guest detection more reliable #7827
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/etc/issue
is far from being a reliable source for OS detection as itcan be changed by a user without affecting any OS functionality. As
newer Debian systems run systemd by default, check for
/etc/os-release
and fallback to
lsb_release
for older Debian versions. Check #7625 fora similar issue. Even
lsb_release
is not manatory, therefore keep thecurrent code of parsing
/etc/issue
to avoid regressions.This fixes #7826