os-release.xml revision 08307930b297fd1c6335afc746e4404dece6ef21
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek<?xml version='1.0'?> <!--*-nxml-*-->
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek This file is part of systemd.
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek Copyright 2010 Lennart Poettering
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek systemd is free software; you can redistribute it and/or modify it
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek under the terms of the GNU Lesser General Public License as published by
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek the Free Software Foundation; either version 2.1 of the License, or
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek (at your option) any later version.
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek systemd is distributed in the hope that it will be useful, but
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek WITHOUT ANY WARRANTY; without even the implied warranty of
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek Lesser General Public License for more details.
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek You should have received a copy of the GNU Lesser General Public License
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek along with systemd; If not, see <http://www.gnu.org/licenses/>.
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <productname>systemd</productname>
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <email>lennart@poettering.net</email>
20bde8192332cff5a2fcf7059a4b48b9fca75e63Evgeny Vereshchagin </authorgroup>
20bde8192332cff5a2fcf7059a4b48b9fca75e63Evgeny Vereshchagin </refentryinfo>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <refentrytitle>os-release</refentrytitle>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <refpurpose>Operating system identification</refpurpose>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <refsynopsisdiv>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <para><filename>/etc/os-release</filename></para>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek </refsynopsisdiv>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <para>The <filename>/etc/os-release</filename> file
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek contains operating system identification data.</para>
20bde8192332cff5a2fcf7059a4b48b9fca75e63Evgeny Vereshchagin <para>The basic file format of
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <filename>os-release</filename> is a newline-separated
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek list of environment-like shell-compatible variable
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek assignments. It is possible to source the
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek configuration from shell scripts, however, beyond mere
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek variable assignments no shell features are supported
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek (this means variable expansion is explicitly not
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen supported), allowing applications to read the file
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen without implementing a shell compatible execution
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen engine. Variable assignment values should be enclosed
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen in double or single quotes if they include spaces,
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen semicolons or other special characters outside of A-Z,
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen a-z, 0-9. All strings should be in UTF-8 format, and
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen non-printable characters should not be used. If double
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen or single quotes or backslashes are to be used within
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen variable assignments they should be escaped with
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen backslashes, following shell style. It is not
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen supported to concatenate multiple individually quoted
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen strings. Lines beginning with "#" shall be ignored as
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <para><filename>/etc/os-release</filename> contains
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen data that is defined by the operating system vendor
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen and should not be changed by the administrator.</para>
f961371fb7a6d1cb5897255cd66608bdc43579ccEvgeny Vereshchagin <para>As this file only encodes names and identifiers
f961371fb7a6d1cb5897255cd66608bdc43579ccEvgeny Vereshchagin it should not be localized.</para>
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <para>The file <filename>/etc/os-release</filename> might
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen be a symlink to another file, but it is important that
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen the file is available from earliest boot on, and hence
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen must be located on the root file system.</para>
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <para>For a longer rationale for
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen <filename>/etc/os-release</filename> please refer to
761a7c71b649b5e926c28c703a11fbdc22dd6df1Thomas Hindoe Paaboel Andersen url="http://0pointer.de/blog/projects/os-release">Announcement of <filename>/etc/os-release</filename></ulink>.</para>
20bde8192332cff5a2fcf7059a4b48b9fca75e63Evgeny Vereshchagin <para>The following OS identifications parameters may be set using
20bde8192332cff5a2fcf7059a4b48b9fca75e63Evgeny Vereshchagin <filename>/etc/os-release</filename>:</para>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <term><varname>NAME=</varname></term>
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek <listitem><para>A string identifying
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek the operating system, without a
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek version component, and suitable for
64eed40c07efb4e2b316ebb4e7481b7a891b7934Zbigniew Jędrzejewski-Szmek presentation to the user. If not set
url="http://cpe.mitre.org/specification/">Common
url="https://tools.ietf.org/html/rfc3986">RFC3986
HOME_URL="https://fedoraproject.org/"