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

« back to all changes in this revision

Viewing changes to man/os-release.5

  • 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:
2
2
.\"     Title: os-release
3
3
.\"    Author: Lennart Poettering <lennart@poettering.net>
4
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5
 
.\"      Date: 10/11/2011
 
5
.\"      Date: 03/16/2012
6
6
.\"    Manual: os-release
7
7
.\"    Source: systemd
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "OS\-RELEASE" "5" "10/11/2011" "systemd" "os-release"
 
10
.TH "OS\-RELEASE" "5" "03/16/2012" "systemd" "os-release"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * Define some portability stuff
13
13
.\" -----------------------------------------------------------------
40
40
.PP
41
41
The basic file format of
42
42
os\-release
43
 
is a newline\-separated list of environment\-like shell\-compatible variable assignments\&. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported, allowing applications to read the file without implementing a shell compatible execution engine\&.
 
43
is a newline\-separated list of environment\-like shell\-compatible variable assignments\&. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments no shell features are supported (this means variable expansion is explicitly not supported), allowing applications to read the file without implementing a shell compatible execution engine\&. Variable assignment values should be enclosed in double or single quotes if they include spaces, semicolons or other special characters outside of A\-Z, a\-z, 0\-9\&. All strings should be in UTF\-8 format, and non\-printable characters should not be used\&. If double or single quotes or backslashes are to be used within variable assignments they should be escaped with backslashes, following shell style\&. It is not supported to concatenate multiple individually quoted strings\&. Lines beginning with "#" shall be ignored as comments\&.
44
44
.PP
45
45
/etc/os\-release
46
46
contains data that is defined by the operating system vendor and should not be changed by the administrator\&.
47
47
.PP
48
 
Depending on the operating system other configuration files might be checked for OS identification as well, however only as fallback\&.
 
48
As this file only encodes names and identifiers it should not be localized\&.
 
49
.PP
 
50
The file
 
51
/etc/os\-release
 
52
might be a symlink to another file, but it is important that the file is available from earliest boot on, and hence must be located on the root file system\&.
 
53
.PP
 
54
For a longer rationale for
 
55
/etc/os\-release
 
56
please refer to the
 
57
\m[blue]\fBAnnouncement of /etc/os\-release\fR\m[]\&\s-2\u[1]\d\s+2\&.
49
58
.SH "OPTIONS"
50
59
.PP
51
60
The following OS identifications parameters may be set using
53
62
.PP
54
63
\fINAME=\fR
55
64
.RS 4
56
 
A string identifying the operating system, without a version string, and not necessarily suitable for presentation to the user\&. If not set defaults to
57
 
Linux\&. Example:
 
65
A string identifying the operating system, without a version component, and suitable for presentation to the user\&. If not set defaults to
 
66
NAME=Linux\&. Example:
58
67
NAME=Fedora
59
68
or
60
69
NAME="Debian GNU/Linux"\&.
62
71
.PP
63
72
\fIVERSION=\fR
64
73
.RS 4
65
 
A string identifying the operating system version, excluding any name information and suitable for presentation to the user\&. Example:
66
 
VERSION=15
67
 
or
68
 
VERSION="15 (Rawhide)"\&.
69
 
.RE
70
 
.PP
71
 
\fIID=\fR
72
 
.RS 4
73
 
A lower\-case string (no spaces) identifying the operating system, excluding any version information and suitable for processing by scripts or usage in generated file names\&. If not set defaults to
74
 
linux\&. Example:
75
 
ID=fedora\&.
 
74
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\&. This field is optional\&. Example:
 
75
VERSION=17
 
76
or
 
77
VERSION="17 (Beefy Miracle)"\&.
 
78
.RE
 
79
.PP
 
80
\fIID=\fR
 
81
.RS 4
 
82
A lower\-case string (no spaces or other characters outside of 0\-9, a\-z, "\&.", "_" and "\-") identifying the operating system, excluding any version information and suitable for processing by scripts or usage in generated file names\&. If not set defaults to
 
83
ID=linux\&. Example:
 
84
ID=fedora
 
85
or
 
86
ID=debian\&.
 
87
.RE
 
88
.PP
 
89
\fIID_LIKE=\fR
 
90
.RS 4
 
91
A space\-separated list of operating system identifiers in the same syntax as the
 
92
\fIID=\fR
 
93
setting\&. Should list identifiers of operating systems that are closely related to the local operating system in regards to packaging and programming interfaces, for example listing one or more OS identifiers the local OS is a derivative from\&. An OS should generally only list other OS identifiers it itself is a derivative from, and not any OSes that are derived from it, but symmetric relationships are possible\&. Build scripts and similar should check this variable if they need to identify the local operating system and the value of
 
94
\fIID=\fR
 
95
is not recognized\&. Operating systems should be listed in order of how closely the local operating system relates to the listed ones, starting with the closest\&. This field is optional\&. Example: for an operating system with
 
96
ID=centos
 
97
an assignment of
 
98
ID_LIKE="rhel fedora"
 
99
would be appropriate\&. For an operating system with
 
100
ID=ubuntu
 
101
an assignment of
 
102
ID_LIKE=debian
 
103
is appropriate\&.
76
104
.RE
77
105
.PP
78
106
\fIVERSION_ID=\fR
79
107
.RS 4
80
 
A lower\-case string (mostly numeric, no spaces) identifying the operating system version, excluding any name information and suitable for processing by scripts or usage in generated file names\&. Example:
81
 
VERSION_ID=15\&.
 
108
A lower\-case string (mostly numeric, no spaces or other characters outside of 0\-9, a\-z, "\&.", "_" and "\-") identifying the operating system version, excluding any OS name information or release code name, and suitable for processing by scripts or usage in generated file names\&. This field is optional\&. Example:
 
109
VERSION_ID=17
 
110
or
 
111
VERSION_ID=11\&.04\&.
82
112
.RE
83
113
.PP
84
114
\fIPRETTY_NAME=\fR
85
115
.RS 4
86
 
A pretty operating system name in a format suitable for presentation to the user\&. May or may not contain an OS version of some kind, as suitable\&. If not set defaults to
87
 
Linux\&. Example:
88
 
PRETTY_NAME=Fedora 15 (Rawhide)\&.
 
116
A pretty operating system name in a format suitable for presentation to the user\&. May or may not contain a release code name or OS version of some kind, as suitable\&. If not set defaults to
 
117
PRETTY_NAME="Linux"\&. Example:
 
118
PRETTY_NAME="Fedora 17 (Beefy Miracle)"\&.
89
119
.RE
90
120
.PP
91
121
\fIANSI_COLOR=\fR
92
122
.RS 4
93
 
A suggested presentation color when showing the distribution name on the console\&. This should be specified as string suitable for inclusion in the ESC [ m ANSI/ECMA\-48 escape code for setting graphical rendition\&. Example:
94
 
ANSI_COLOR=0;31
 
123
A suggested presentation color when showing the OS name on the console\&. This should be specified as string suitable for inclusion in the ESC [ m ANSI/ECMA\-48 escape code for setting graphical rendition\&. This field is optional\&. Example:
 
124
ANSI_COLOR="0;31"
95
125
for red, or
96
 
ANSI_COLOR=1;34
 
126
ANSI_COLOR="1;34"
97
127
for light blue\&.
98
128
.RE
99
129
.PP
100
 
If you are reading this file from code or a shell script to determine the OS or a specific version of it, use the ID and VERSION_ID fields\&. When looking for an OS identification string for presentation to the user use the PRETTY_NAME field\&.
 
130
\fICPE_NAME=\fR
 
131
.RS 4
 
132
A CPE name for the operating system, following the
 
133
\m[blue]\fBCommon Platform Enumeration Specification\fR\m[]\&\s-2\u[2]\d\s+2
 
134
as proposed by the MITRE Corporation\&. This field is optional\&. Example:
 
135
CPE_NAME="cpe:/o:fedoraproject:fedora:17"
 
136
.RE
 
137
.PP
 
138
\fIHOME_URL=\fR, \fISUPPORT_URL=\fR, \fIBUG_REPORT_URL=\fR
 
139
.RS 4
 
140
Links to resources on the Internet related the operating system\&.
 
141
\fIHOME_URL=\fR
 
142
should refer to the homepage of the of operating system, or alternatively some homepage of the specific version of the operating system\&.
 
143
\fISUPPORT_URL=\fR
 
144
should refer to the main support page for the operating system, if there is any\&. This is primarily intended for operating systems which vendors provide support for\&.
 
145
\fIBUG_REPORT_URL=\fR
 
146
should refer to the main bug reporting page for the operating system, if there is any\&. This is primarily intended for operating systems that rely on community QA\&. These settings are optional, and providing only some of these settings is common\&. These URLs are intended to be exposed in "About this system" UIs behind links with captions such as "About this Operating System", "Obtain Support" resp\&. "Report a Bug"\&. The values should be in
 
147
\m[blue]\fBRFC3986 format\fR\m[]\&\s-2\u[3]\d\s+2, and should be
 
148
http:
 
149
or
 
150
https:
 
151
URLs, and possibly
 
152
mailto:
 
153
or
 
154
tel:\&. Only one URL shall be listed in each setting\&. If multiple resources need to be referenced it is recommended to provide an online landing page linking all available resources\&. Examples:
 
155
HOME_URL="https://fedoraproject\&.org/"
 
156
and
 
157
BUG_REPORT_URL="https://bugzilla\&.redhat\&.com/"
 
158
.RE
 
159
.PP
 
160
If you are reading this file from C code or a shell script to determine the OS or a specific version of it, use the ID and VERSION_ID fields, possibly with ID_LIKE as fallback for ID\&. When looking for an OS identification string for presentation to the user use the PRETTY_NAME field\&.
101
161
.PP
102
162
Note that operating system vendors may choose not to provide version information, for example to accommodate for rolling releases\&. In this case VERSION and VERSION_ID may be unset\&. Applications should not rely on these fields to be set\&.
 
163
.PP
 
164
Operating system vendors may extend the file format and introduce new fields\&. It is highly recommended to prefix new fields with an OS specific name in order to avoid name clashes\&. Applications reading this file must ignore unknown fields\&. Example:
 
165
DEBIAN_BTS="debbugs://bugs\&.debian\&.org/"
103
166
.SH "EXAMPLE"
104
167
.sp
105
168
.if n \{\
107
170
.\}
108
171
.nf
109
172
NAME=Fedora
110
 
VERSION="15 (Rawhide)"
 
173
VERSION="17 (Beefy Miracle)"
111
174
ID=fedora
112
 
VERSION_ID=15
113
 
PRETTY_NAME="Fedora 15 (Rawhide)"
114
 
ANSI_COLOR=0;34
 
175
VERSION_ID=17
 
176
PRETTY_NAME="Fedora 17 (Beefy Miracle)"
 
177
ANSI_COLOR="0;34"
 
178
CPE_NAME="cpe:/o:fedoraproject:fedora:17"
 
179
HOME_URL="https://fedoraproject\&.org/"
 
180
BUG_REPORT_URL="https://bugzilla\&.redhat\&.com/"
115
181
.fi
116
182
.if n \{\
117
183
.RE
130
196
.RS 4
131
197
Developer
132
198
.RE
 
199
.SH "NOTES"
 
200
.IP " 1." 4
 
201
Announcement of /etc/os-release
 
202
.RS 4
 
203
\%http://0pointer.de/blog/projects/os-release
 
204
.RE
 
205
.IP " 2." 4
 
206
Common Platform Enumeration Specification
 
207
.RS 4
 
208
\%http://cpe.mitre.org/specification/
 
209
.RE
 
210
.IP " 3." 4
 
211
RFC3986 format
 
212
.RS 4
 
213
\%https://tools.ietf.org/html/rfc3986
 
214
.RE