Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read Linux distribution info from os-release file
The Linux distribution community has somewhat deprecated the lsb_release utility and has standardized on a new file, os-release, that can be simply parsed to get the same information. Attempt to read this file in /etc/os-release, then /usr/lib/os-release, and finally, fall back to using the lsb_release utility if neither of those files are found. See: https://www.freedesktop.org/software/systemd/man/os-release.html Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2184391 Closes #23712.
- Loading branch information