/usr/lib/os-release is the official path of /etc/os-release (the latter is usually a symlink to the former)
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Driver/Distro.cpp | ||
---|---|---|
140 | Technically speaking, the spec says you are supposed to read /etc/os-release first and fall back to /usr/lib/os-release only if the former does not exist. |
lib/Driver/Distro.cpp | ||
---|---|---|
140 | You're right, I'll adapt. |
lib/Driver/Distro.cpp | ||
---|---|---|
149 | I'm changing this so we can detect Clear-derived distributions. |
Comment Actions
Update detection: as of Clear Linux 25620, /usr/lib/os-relaese contains ID_LIKE=clear-linux-os, which allows detecting not only Clear itself, but also Linux distributions derived from it (Clear Linux mixes).
Technically speaking, the spec says you are supposed to read /etc/os-release first and fall back to /usr/lib/os-release only if the former does not exist.