summaryrefslogtreecommitdiffstats
path: root/templates/man7/systemd.offline-updates.7.pot
blob: 1ae5ebb7db1dc55d5901a1707e0cd692eef2ae3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-06-01 06:28+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: TH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SYSTEMD\\&.OFFLINE-UPDATES"
msgstr ""

#. type: TH
#: archlinux fedora-40 mageia-cauldron opensuse-tumbleweed
#, no-wrap
msgid "systemd 255"
msgstr ""

#. type: TH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "systemd.offline-updates"
msgstr ""

#.  -----------------------------------------------------------------
#.  * MAIN CONTENT STARTS HERE *
#.  -----------------------------------------------------------------
#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NAME"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "systemd.offline-updates - Implementation of offline updates in systemd"
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "IMPLEMENTING OFFLINE SYSTEM UPDATES"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"This man page describes how to implement \"offline\" system updates with "
"systemd\\&. By \"offline\" OS updates we mean package installations and "
"updates that are run with the system booted into a special system update "
"mode, in order to avoid problems related to conflicts of libraries and "
"services that are currently running with those on disk\\&. This document is "
"inspired by this \\m[blue]B<GNOME design "
"whiteboard>\\m[]\\&\\s-2\\u[1]\\d\\s+2\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "The logic:"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The package manager prepares system updates by downloading all (\\&.rpm or "
"\\&.deb or whatever) packages to update off-line in a special directory /var/"
"lib/system-update (or another directory of the package/upgrade "
"manager\\*(Aqs choice)\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"When the user OK\\*(Aqed the update, the symlink /system-update or /etc/"
"system-update is created that points to /var/lib/system-update (or wherever "
"the directory with the upgrade files is located) and the system is "
"rebooted\\&. This symlink is in the root directory, since we need to check "
"for it very early at boot, at a time where /var/ is not available yet\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Very early in the new boot B<systemd-system-update-generator>(8)  checks "
"whether /system-update or /etc/system-update exists\\&. If so, it "
"(temporarily and for this boot only) redirects (i\\&.e\\&. symlinks)  "
"default\\&.target to system-update\\&.target, a special target that pulls in "
"the base system (i\\&.e\\&.  sysinit\\&.target, so that all file systems are "
"mounted but little else) and the system update units\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The system now continues to boot into default\\&.target, and thus into "
"system-update\\&.target\\&. This target pulls in all system update units\\&. "
"Only one service should perform an update (see the next point), and all the "
"other ones should exit cleanly with a \"success\" return code and without "
"doing anything\\&. Update services should be ordered after sysinit\\&.target "
"so that the update starts after all file systems have been mounted\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"As the first step, an update service should check if the /system-update or /"
"etc/system-update symlink points to the location used by that update "
"service\\&. In case it does not exist or points to a different location, the "
"service must exit without error\\&. It is possible for multiple update "
"services to be installed, and for multiple update services to be launched in "
"parallel, and only the one that corresponds to the tool that I<created> the "
"symlink before reboot should perform any actions\\&. It is unsafe to run "
"multiple updates in parallel\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The update service should now do its job\\&. If applicable and possible, it "
"should create a file system snapshot, then install all packages\\&. After "
"completion (regardless whether the update succeeded or failed) the machine "
"must be rebooted, for example by calling B<systemctl reboot>\\&. In "
"addition, on failure the script should revert to the old file system "
"snapshot (without the symlink)\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The update scripts should exit only after the update is finished\\&. It is "
"expected that the service which performs the update will cause the machine "
"to reboot after it is done\\&. If the system-update\\&.target is "
"successfully reached, i\\&.e\\&. all update services have run, and the /"
"system-update or /etc/system-update symlink still exists, it will be removed "
"and the machine rebooted as a safety measure\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"After a reboot, now that the /system-update and /etc/system-update symlink "
"is gone, the generator won\\*(Aqt redirect default\\&.target anymore and the "
"system now boots into the default target again\\&."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "RECOMMENDATIONS"
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"To make things a bit more robust we recommend hooking the update script into "
"system-update\\&.target via a \\&.wants/ symlink in the distribution "
"package, rather than depending on B<systemctl enable> in the postinst "
"scriptlets of your package\\&. More specifically, for your update script "
"create a \\&.service file, without [Install] section, and then add a symlink "
"like /usr/lib/systemd/system/system-update\\&.target\\&.wants/foobar\\&."
"service → \\&.\\&./foobar\\&.service to your package\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Make sure to remove the /system-update and /etc/system-update symlinks as "
"early as possible in the update script to avoid reboot loops in case the "
"update fails\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"Use I<FailureAction=reboot> in the service file for your update script to "
"ensure that a reboot is automatically triggered if the update fails\\&.  "
"I<FailureAction=> makes sure that the specified unit is activated if your "
"script exits uncleanly (by non-zero error code, or signal/coredump)\\&. If "
"your script succeeds you should trigger the reboot in your own code, for "
"example by invoking logind\\*(Aqs B<Reboot()> call or calling B<systemctl "
"reboot>\\&. See B<org.freedesktop.login1>(5)  for details about the logind D-"
"Bus API\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"The update service should declare I<DefaultDependencies=no>, "
"I<Requires=sysinit\\&.target>, I<After=sysinit\\&.target>, I<After=system-"
"update-pre\\&.target>, I<Before=system-update\\&.target> and explicitly pull "
"in any other services it requires\\&."
msgstr ""

#. type: Plain text
#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron
#: opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"It may be desirable to always run an auxiliary unit when booting into "
"offline-updates mode, which itself does not install updates\\&. To do this "
"create a \\&.service file with I<Wants=system-update-pre\\&.target> and "
"I<Before=system-update-pre\\&.target> and add a symlink to that file under /"
"usr/lib/systemd/system-update\\&.target\\&.wants \\&."
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "SEE ALSO"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid ""
"B<systemd>(1), B<systemd.generator>(7), B<systemd-system-update-"
"generator>(8), B<dnf.plugin.system-upgrade>(8)"
msgstr ""

#. type: SH
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid "NOTES"
msgstr ""

#. type: IP
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
#, no-wrap
msgid " 1."
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "GNOME design whiteboard"
msgstr ""

#. type: Plain text
#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide
#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed
msgid "\\%https://wiki.gnome.org/Design/OS/SoftwareUpdates"
msgstr ""

#. type: TH
#: debian-bookworm opensuse-leap-15-6
#, no-wrap
msgid "systemd 254"
msgstr ""

#. type: Plain text
#: debian-bookworm
msgid ""
"To make things a bit more robust we recommend hooking the update script into "
"system-update\\&.target via a \\&.wants/ symlink in the distribution "
"package, rather than depending on B<systemctl enable> in the postinst "
"scriptlets of your package\\&. More specifically, for your update script "
"create a \\&.service file, without [Install] section, and then add a symlink "
"like /lib/systemd/system/system-update\\&.target\\&.wants/foobar\\&.service "
"→ \\&.\\&./foobar\\&.service to your package\\&."
msgstr ""

#. type: Plain text
#: debian-bookworm
msgid ""
"It may be desirable to always run an auxiliary unit when booting into "
"offline-updates mode, which itself does not install updates\\&. To do this "
"create a \\&.service file with I<Wants=system-update-pre\\&.target> and "
"I<Before=system-update-pre\\&.target> and add a symlink to that file under /"
"lib/systemd/system-update\\&.target\\&.wants \\&."
msgstr ""

#. type: TH
#: debian-unstable fedora-rawhide
#, no-wrap
msgid "systemd 256~rc3"
msgstr ""