Permalink
Browse files

os-release: Add CODENAME field

Debian and their derivatives (Ubuntu, Trisquel, etc.) use a code name
for their repositories. Thus record the code name in os-release for
processing.

Closes systemd/systemd#3429
  • Loading branch information...
1 parent f3e4363 commit 2b824ccae61142cbcdaf251c2d3c996f933e217a @bdrung committed Jun 3, 2016
Showing with 16 additions and 0 deletions.
  1. +16 −0 man/os-release.xml
View
@@ -309,6 +309,22 @@
</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>CODENAME=</varname></term>
+
+ <listitem><para>
+ A lower-case string (no spaces or other characters outside of
+ 0–9, a–z, ".", "_" and "-") identifying the operating system
+ release code name, excluding any OS name information or
+ release version, and suitable for processing by scripts or
+ usage in generated filenames. This field is optional and may
+ not be implemented on all systems.
+ Examples:
+ <literal>CODENAME=buster</literal>,
+ <literal>CODENAME=xenial</literal>
+ </para></listitem>
+ </varlistentry>
+
</variablelist>
<para>If you are reading this file from C code or a shell script

0 comments on commit 2b824cc

Please sign in to comment.