<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="+1">Johann,<br>
</font><font size="+1">The description for /etc/os-release makes
only this (quite informal) statement about the release code name:<br>
<br>
</font><font size="+1"> VERSION: A string identifying the
operating system version, excluding any OS name information,
possibly including a release code name, and suitable for
presentation to the user. <br>
<br>
This does not even recommend what the syntax should be.<br>
<br>
VERSION_ID, VARIANT_ID are definitely out of question for putting
it there, and IMO also NAME and VARIANT.<br>
<br>
The statement about having it in PRETTY_NAME is even more informal
than the one for VERSION.<br>
<br>
Bottom line is for someone deciding to add a release code name,
there is room for doing that.<br>
<br>
However, I'm on the parsing side of this. From that perspective,
this is not a question about having a possibility for putting the
release code name somewhere, but where to expect it. A standard
field named CODENAME is obviously superior compared to putting the
release code name somewhere, even if there is a recommendation on
the syntax (that people can and will choose not to follow, e.g.
for compatibility reasons).<br>
<br>
Also, adding a new field is a backwards compatible change for
distributions, whereas changing the value of an existing field may
not be (depending on the existing parsing code).<br>
<br>
Even lsb_release, as little as it provides, has a code name field
described. See
<a class="moz-txt-link-freetext" href="http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html">http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/lsbrelease.html</a><br>
<br>
For distributions that have /etc/os-release and do not have
lsb_release (there seem to be many of them), this missing field is
a reason still to parse the one-line distro files.<br>
<br>
Andy<br>
</font><br>
<div class="moz-cite-prefix">On 01/13/2016 12:04 PM, Jóhann B.
Guðmundsson wrote:<br>
</div>
<blockquote cite="mid:56962F42.7030209@gmail.com" type="cite">Use
the existing fields as in
<br>
<br>
NAME=
<br>
VERSION=
<br>
ID=
<br>
VERSION_ID=
<br>
PRETTY_NAME=
<br>
VARIANT=
<br>
VARIANT_ID=
<br>
<br>
Adding additional codename field serves no purpose or value which
the previous fields do not already cover.
<br>
_______________________________________________
<br>
systemd-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
<br>
</blockquote>
<br>
</body>
</html>