~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to man/os-release.html

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>os-release</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/></head><body><div class="refentry" title="os-release"><a id="os-release"/><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>os-release — Operating system identification</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><p><code class="filename">/etc/os-release</code></p></div><div class="refsect1" title="Description"><a id="id525702"/><h2>Description</h2><p>The <code class="filename">/etc/os-release</code> file
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>os-release</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="os-release"><a name="os-release"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>os-release — Operating system identification</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><p><code class="filename">/etc/os-release</code></p></div><div class="refsect1" title="Description"><a name="id488605"></a><h2>Description</h2><p>The <code class="filename">/etc/os-release</code> file
4
2
                contains operating system identification data.</p><p>The basic file format of
5
 
                <code class="filename">os-release</code> is a
6
 
                newline-separated list of environment-like
7
 
                shell-compatible variable assignments. It is possible
8
 
                to source the configuration from shell scripts,
9
 
                however, beyond mere variable assignments no shell
10
 
                features are supported, allowing applications to read
11
 
                the file without implementing a shell compatible
12
 
                execution engine.</p><p><code class="filename">/etc/os-release</code> contains
 
3
                <code class="filename">os-release</code> is a newline-separated
 
4
                list of environment-like shell-compatible variable
 
5
                assignments. It is possible to source the
 
6
                configuration from shell scripts, however, beyond mere
 
7
                variable assignments no shell features are supported
 
8
                (this means variable expansion is explicitly not
 
9
                supported), allowing applications to read the file
 
10
                without implementing a shell compatible execution
 
11
                engine. Variable assignment values should be enclosed
 
12
                in double or single quotes if they include spaces,
 
13
                semicolons or other special characters outside of A-Z,
 
14
                a-z, 0-9. All strings should be in UTF-8 format, and
 
15
                non-printable characters should not be used. If double
 
16
                or single quotes or backslashes are to be used within
 
17
                variable assignments they should be escaped with
 
18
                backslashes, following shell style. It is not
 
19
                supported to concatenate multiple individually quoted
 
20
                strings. Lines beginning with "#" shall be ignored as
 
21
                comments.</p><p><code class="filename">/etc/os-release</code> contains
13
22
                data that is defined by the operating system vendor
14
 
                and should not be changed by the administrator.</p><p>Depending on the operating system other
15
 
                configuration files might be checked for OS
16
 
                identification as well, however only as
17
 
                fallback.</p></div><div class="refsect1" title="Options"><a id="id525743"/><h2>Options</h2><p>The following OS identifications parameters may be set using
 
23
                and should not be changed by the administrator.</p><p>As this file only encodes names and identifiers
 
24
                it should not be localized.</p><p>The file <code class="filename">/etc/os-release</code> might
 
25
                be a symlink to another file, but it is important that
 
26
                the file is available from earliest boot on, and hence
 
27
                must be located on the root file system.</p><p>For a longer rationale for
 
28
                <code class="filename">/etc/os-release</code> please refer to
 
29
                the <a class="ulink" href="http://0pointer.de/blog/projects/os-release" target="_top">Announcement of <code class="filename">/etc/os-release</code></a>.</p></div><div class="refsect1" title="Options"><a name="id488683"></a><h2>Options</h2><p>The following OS identifications parameters may be set using
18
30
                <code class="filename">/etc/os-release</code>:</p><div class="variablelist"><dl><dt><span class="term"><code class="varname">NAME=</code></span></dt><dd><p>A string identifying
19
31
                                the operating system, without a
20
 
                                version string, and not necessarily
21
 
                                suitable for presentation to the
22
 
                                user. If not set defaults to
23
 
                                <code class="literal">Linux</code>. Example:
 
32
                                version component, and suitable for
 
33
                                presentation to the user. If not set
 
34
                                defaults to
 
35
                                <code class="literal">NAME=Linux</code>. Example:
24
36
                                <code class="literal">NAME=Fedora</code> or
25
37
                                <code class="literal">NAME="Debian
26
38
                                GNU/Linux"</code>.</p></dd><dt><span class="term"><code class="varname">VERSION=</code></span></dt><dd><p>A string identifying
27
39
                                the operating system version,
28
 
                                excluding any name information and
29
 
                                suitable for presentation to the
30
 
                                user. Example:
31
 
                                <code class="literal">VERSION=15</code> or
32
 
                                <code class="literal">VERSION="15
33
 
                                (Rawhide)"</code>.</p></dd><dt><span class="term"><code class="varname">ID=</code></span></dt><dd><p>A lower-case string
34
 
                                (no spaces) identifying the operating
35
 
                                system, excluding any version
36
 
                                information and suitable for
37
 
                                processing by scripts or usage in
38
 
                                generated file names. If not set
39
 
                                defaults to
40
 
                                <code class="literal">linux</code>. Example:
41
 
                                <code class="literal">ID=fedora</code>.</p></dd><dt><span class="term"><code class="varname">VERSION_ID=</code></span></dt><dd><p>A lower-case string
42
 
                                (mostly numeric, no spaces) identifying the
43
 
                                operating system version, excluding
44
 
                                any name information and suitable for
45
 
                                processing by scripts or usage in generated file names. Example:
46
 
                                <code class="literal">VERSION_ID=15</code>.</p></dd><dt><span class="term"><code class="varname">PRETTY_NAME=</code></span></dt><dd><p>A pretty operating
 
40
                                excluding any OS name information,
 
41
                                possibly including a release code
 
42
                                name, and suitable for presentation to
 
43
                                the user. This field is
 
44
                                optional. Example:
 
45
                                <code class="literal">VERSION=17</code> or
 
46
                                <code class="literal">VERSION="17 (Beefy
 
47
                                Miracle)"</code>.</p></dd><dt><span class="term"><code class="varname">ID=</code></span></dt><dd><p>A lower-case string
 
48
                                (no spaces or other characters outside
 
49
                                of 0-9, a-z, ".", "_" and "-")
 
50
                                identifying the operating system,
 
51
                                excluding any version information and
 
52
                                suitable for processing by scripts or
 
53
                                usage in generated file names. If not
 
54
                                set defaults to
 
55
                                <code class="literal">ID=linux</code>. Example:
 
56
                                <code class="literal">ID=fedora</code> or
 
57
                                <code class="literal">ID=debian</code>.</p></dd><dt><span class="term"><code class="varname">ID_LIKE=</code></span></dt><dd><p>A space-separated list
 
58
                                of operating system identifiers in the
 
59
                                same syntax as the
 
60
                                <code class="varname">ID=</code> setting. Should
 
61
                                list identifiers of operating systems
 
62
                                that are closely related to the local
 
63
                                operating system in regards to
 
64
                                packaging and programming interfaces,
 
65
                                for example listing one or more
 
66
                                OS identifiers the local
 
67
                                OS is a derivative from. An
 
68
                                OS should generally only list other OS
 
69
                                identifiers it itself is a derivative
 
70
                                from, and not any OSes that
 
71
                                are derived from it, but symmetric
 
72
                                relationships are possible. Build
 
73
                                scripts and similar should check this
 
74
                                variable if they need to identify the
 
75
                                local operating system and the value
 
76
                                of <code class="varname">ID=</code> is not
 
77
                                recognized. Operating systems should
 
78
                                be listed in order of how closely the
 
79
                                local operating system relates to the
 
80
                                listed ones, starting with the
 
81
                                closest. This field is
 
82
                                optional. Example: for an operating
 
83
                                system with
 
84
                                <code class="literal">ID=centos</code> an
 
85
                                assignment of <code class="literal">ID_LIKE="rhel
 
86
                                fedora"</code> would be
 
87
                                appropriate. For an operating system
 
88
                                with <code class="literal">ID=ubuntu</code> an
 
89
                                assignment of
 
90
                                <code class="literal">ID_LIKE=debian</code> is
 
91
                                appropriate.</p></dd><dt><span class="term"><code class="varname">VERSION_ID=</code></span></dt><dd><p>A lower-case string
 
92
                                (mostly numeric, no spaces or other
 
93
                                characters outside of 0-9, a-z, ".",
 
94
                                "_" and "-") identifying the operating
 
95
                                system version, excluding any OS name
 
96
                                information or release code name, and
 
97
                                suitable for processing by scripts or
 
98
                                usage in generated file names. This
 
99
                                field is optional. Example:
 
100
                                <code class="literal">VERSION_ID=17</code> or
 
101
                                <code class="literal">VERSION_ID=11.04</code>.</p></dd><dt><span class="term"><code class="varname">PRETTY_NAME=</code></span></dt><dd><p>A pretty operating
47
102
                                system name in a format suitable for
48
103
                                presentation to the user. May or may
49
 
                                not contain an OS version of some
50
 
                                kind, as suitable. If not set defaults
51
 
                                to <code class="literal">Linux</code>. Example:
52
 
                                <code class="literal">PRETTY_NAME=Fedora 15
53
 
                                (Rawhide)</code>.</p></dd><dt><span class="term"><code class="varname">ANSI_COLOR=</code></span></dt><dd><p>A suggested
 
104
                                not contain a release code name or OS
 
105
                                version of some kind, as suitable. If
 
106
                                not set defaults to
 
107
                                <code class="literal">PRETTY_NAME="Linux"</code>. Example:
 
108
                                <code class="literal">PRETTY_NAME="Fedora 17 (Beefy
 
109
                                Miracle)"</code>.</p></dd><dt><span class="term"><code class="varname">ANSI_COLOR=</code></span></dt><dd><p>A suggested
54
110
                                presentation color when showing the
55
 
                                distribution name on the console. This
 
111
                                OS name on the console. This
56
112
                                should be specified as string suitable
57
113
                                for inclusion in the ESC [ m
58
114
                                ANSI/ECMA-48 escape code for setting
59
 
                                graphical rendition. Example:
60
 
                                <code class="literal">ANSI_COLOR=0;31</code> for
61
 
                                red, or
62
 
                                <code class="literal">ANSI_COLOR=1;34</code> for
63
 
                                light blue.</p></dd></dl></div><p>If you are reading this file from code or a
 
115
                                graphical rendition. This field is
 
116
                                optional. Example:
 
117
                                <code class="literal">ANSI_COLOR="0;31"</code>
 
118
                                for red, or
 
119
                                <code class="literal">ANSI_COLOR="1;34"</code>
 
120
                                for light blue.</p></dd><dt><span class="term"><code class="varname">CPE_NAME=</code></span></dt><dd><p>A CPE name for the
 
121
                                operating system, following the <a class="ulink" href="http://cpe.mitre.org/specification/" target="_top">Common
 
122
                                Platform Enumeration
 
123
                                Specification</a> as proposed by
 
124
                                the MITRE Corporation. This field
 
125
                                is optional. Example:
 
126
                                <code class="literal">CPE_NAME="cpe:/o:fedoraproject:fedora:17"</code>
 
127
                                </p></dd><dt><span class="term"><code class="varname">HOME_URL=</code>, </span><span class="term"><code class="varname">SUPPORT_URL=</code>, </span><span class="term"><code class="varname">BUG_REPORT_URL=</code></span></dt><dd><p>Links to resources on
 
128
                                the Internet related the operating
 
129
                                system. <code class="varname">HOME_URL=</code>
 
130
                                should refer to the homepage of the of
 
131
                                operating system, or alternatively
 
132
                                some homepage of the specific version
 
133
                                of the operating
 
134
                                system. <code class="varname">SUPPORT_URL=</code>
 
135
                                should refer to the main support page
 
136
                                for the operating system, if there is
 
137
                                any. This is primarily intended for
 
138
                                operating systems which vendors
 
139
                                provide support
 
140
                                for. <code class="varname">BUG_REPORT_URL=</code>
 
141
                                should refer to the main bug reporting
 
142
                                page for the operating system, if
 
143
                                there is any. This is primarily
 
144
                                intended for operating systems that
 
145
                                rely on community QA. These settings
 
146
                                are optional, and providing only some
 
147
                                of these settings is common. These
 
148
                                URLs are intended to be exposed in
 
149
                                "About this system" UIs behind links
 
150
                                with captions such as "About this
 
151
                                Operating System", "Obtain Support"
 
152
                                resp. "Report a Bug". The values should
 
153
                                be in <a class="ulink" href="https://tools.ietf.org/html/rfc3986" target="_top">RFC3986
 
154
                                format</a>, and should be
 
155
                                <code class="literal">http:</code> or
 
156
                                <code class="literal">https:</code> URLs, and
 
157
                                possibly <code class="literal">mailto:</code> or
 
158
                                <code class="literal">tel:</code>. Only one URL
 
159
                                shall be listed in each setting. If
 
160
                                multiple resources need to be
 
161
                                referenced it is recommended to
 
162
                                provide an online landing page linking
 
163
                                all available resources. Examples:
 
164
                                <code class="literal">HOME_URL="https://fedoraproject.org/"</code>
 
165
                                and
 
166
                                <code class="literal">BUG_REPORT_URL="https://bugzilla.redhat.com/"</code></p></dd></dl></div><p>If you are reading this file from C code or a
64
167
                shell script to determine the OS or a specific version
65
 
                of it, use the ID and VERSION_ID fields. When looking
66
 
                for an OS identification string for presentation to
67
 
                the user use the PRETTY_NAME field.</p><p>Note that operating system vendors may choose
 
168
                of it, use the ID and VERSION_ID fields, possibly with
 
169
                ID_LIKE as fallback for ID. When looking for an OS
 
170
                identification string for presentation to the user use
 
171
                the PRETTY_NAME field.</p><p>Note that operating system vendors may choose
68
172
                not to provide version information, for example to
69
173
                accommodate for rolling releases. In this case VERSION
70
174
                and VERSION_ID may be unset. Applications should not
71
 
                rely on these fields to be set.</p></div><div class="refsect1" title="Example"><a id="id493290"/><h2>Example</h2><pre class="programlisting">NAME=Fedora
72
 
VERSION="15 (Rawhide)"
 
175
                rely on these fields to be set.</p><p>Operating system vendors may extend the file
 
176
                format and introduce new fields. It is highly
 
177
                recommended to prefix new fields with an OS specific
 
178
                name in order to avoid name clashes. Applications
 
179
                reading this file must ignore unknown fields. Example:
 
180
                <code class="literal">DEBIAN_BTS="debbugs://bugs.debian.org/"</code></p></div><div class="refsect1" title="Example"><a name="id529833"></a><h2>Example</h2><pre class="programlisting">NAME=Fedora
 
181
VERSION="17 (Beefy Miracle)"
73
182
ID=fedora
74
 
VERSION_ID=15
75
 
PRETTY_NAME="Fedora 15 (Rawhide)"
76
 
ANSI_COLOR=0;34</pre></div><div class="refsect1" title="See Also"><a id="id493304"/><h2>See Also</h2><p>
 
183
VERSION_ID=17
 
184
PRETTY_NAME="Fedora 17 (Beefy Miracle)"
 
185
ANSI_COLOR="0;34"
 
186
CPE_NAME="cpe:/o:fedoraproject:fedora:17"
 
187
HOME_URL="https://fedoraproject.org/"
 
188
BUG_REPORT_URL="https://bugzilla.redhat.com/"</pre></div><div class="refsect1" title="See Also"><a name="id529847"></a><h2>See Also</h2><p>
77
189
                          <span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span>,
78
190
                          <span class="citerefentry"><span class="refentrytitle">lsb_release</span>(1)</span>,
79
191
                          <span class="citerefentry"><span class="refentrytitle">hostname</span>(5)</span>,