man: offline-updates: make dependence on system-update.target explicit
authorMichael Zhivich <mzhivich@akamai.com>
Fri, 12 Jul 2019 16:22:30 +0000 (12:22 -0400)
committerLennart Poettering <lennart@poettering.net>
Sun, 14 Jul 2019 11:25:56 +0000 (13:25 +0200)
Current operation of system-update-cleanup.service (removing /system-update
symlink and rebooting) implies that any update must complete *before*
system-update.target is reached.

Update recommendations to include explicitly setting
Before=system-update.target in services that use offline-updates mode.

Signed-off-by: Michael Zhivich <mzhivich@akamai.com>
man/systemd.offline-updates.xml

index cd9c1b5..0639066 100644 (file)
       <listitem>
         <para>The update service should declare <varname>DefaultDependencies=no</varname>,
         <varname>Requires=sysinit.target</varname>, <varname>After=sysinit.target</varname>,
-        <varname>After=system-update-pre.target</varname>
+        <varname>After=system-update-pre.target</varname>, <varname>Before=system-update.target</varname>
         and explicitly pull in any other services it requires.</para>
       </listitem>