]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: systemd.offline-updates: Document system-update-pre.target usage
authorHans de Goede <hdegoede@redhat.com>
Tue, 19 Jun 2018 12:33:59 +0000 (14:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Jun 2018 08:45:55 +0000 (10:45 +0200)
man/systemd.offline-updates.xml

index c11004c88222848a263500e536eb9ae82f0146d0..113d74a220931ee91307379d5f079c65cbff195b 100644 (file)
         <varname>After=system-update-pre.target</varname>
         and explicitly pull in any other services it requires.</para>
       </listitem>
+
+      <listitem>
+        <para>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
+        <varname>Wants=system-update-pre.target</varname> and
+        <varname>Before=system-update-pre.target</varname> and add a symlink
+        to that file under
+        <filename noindex='true'>/usr/lib/systemd/system-update.target.wants</filename>
+        .</para>
+      </listitem>
     </orderedlist>
   </refsect1>