Hi,
yep, that file is pretty useful. But it's not really written by systemd to my knowledge, but it's rather a "config file" which systemd evaluates -
it's even present on non-systemd systems.
On CentOS, it's part of the CentOS release package:
centos-release-7-5.1804.el7.centos.2.x86_64
I also have that file on Gentoo, which never ever saw anything systemd, here it's shipped by:
sys-apps/baselayout-2.4.1-r2
Hare's the original blog post about it:
http://0pointer.de/blog/projects/os-release
Many distros have adopted this useful file since then ;-).
Cheers and HTH,
Oliver
Am 28.06.2018 um 18:34 schrieb Greg Thain:
>
> FYI, I just discovered this new file which systemd writes, /etc/os-release, which coalesces a lot of the distro-specific files like /etc/redhat-release, /etc/debian-version, etc. Here's an example:
>
> This might be handy to use in our startd code and in day-to-day interactive debugging:
>
>
> $ cat /etc/os-release
> PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
> NAME="Debian GNU/Linux"
> VERSION_ID="8"
> VERSION="8 (jessie)"
> ID=debian
> HOME_URL="http://www.debian.org/"
> SUPPORT_URL="http://www.debian.org/support"
> BUG_REPORT_URL="https://bugs.debian.org/"
>
> _______________________________________________
> HTCondor-devel mailing list
> HTCondor-devel@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/htcondor-devel
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
|