Updated to use an OSInfo struct as suggested.
/usr/lib/os-release is actually defined by the freedesktop.org spec[1]. It is suggested both are searched. Fedora and CentOS both provide /usr/lib/os-release.
[1] https://www.freedesktop.org/software/systemd/man/os-release.html
« Back to merge proposal
Updated to use an OSInfo struct as suggested.
/usr/lib/os-release is actually defined by the freedesktop.org spec[1]. It is suggested both are searched. Fedora and CentOS both provide /usr/lib/ os-release.
[1] https:/ /www.freedeskto p.org/software/ systemd/ man/os- release. html