summaryrefslogtreecommitdiff
path: root/man/systemd.offline-updates.xml
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-06-19 10:50:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-19 13:42:19 +0200
commit520741d08eb223703421df0b082bbbe522992f20 (patch)
tree9e23153a00008bf32aa6c090ce14c93693d7c117 /man/systemd.offline-updates.xml
parentc0373eb019db70017878ee64d042de902e4c98ee (diff)
downloadsystemd-520741d08eb223703421df0b082bbbe522992f20.tar.gz
units: Add new system-update-pre.target
systemd offline-updates allows dropping multiple system update units to be added to system-update.target.wants. As documented in systemd.offline-updates(7) only 1 of these units should actually be active (based on the /system-update symlink) and when that unit is done it should reboot the system. In some cases it is desirable to run a unit whenever booting in offline-updates mode indepedent of which update unit is going to handle the update. One example of this is integration with bootloader code which checks if the previous boot was succesful. Since the active unit will reboot the system when it is done, there is no guarantee that adding such a unit to system-update.target.wants will get it executed always. This commit adds a system-update-pre.target which can be used for units which should always run when booting in offline-updates mode.
Diffstat (limited to 'man/systemd.offline-updates.xml')
-rw-r--r--man/systemd.offline-updates.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/man/systemd.offline-updates.xml b/man/systemd.offline-updates.xml
index 258d446784..c11004c882 100644
--- a/man/systemd.offline-updates.xml
+++ b/man/systemd.offline-updates.xml
@@ -136,6 +136,7 @@
<listitem>
<para>The update service should declare <varname>DefaultDependencies=false</varname>,
<varname>Requires=sysinit.target</varname>, <varname>After=sysinit.target</varname>,
+ <varname>After=system-update-pre.target</varname>
and explicitly pull in any other services it requires.</para>
</listitem>
</orderedlist>