]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: Add new system-update-pre.target
authorHans de Goede <hdegoede@redhat.com>
Tue, 19 Jun 2018 08:50:41 +0000 (10:50 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 19 Jun 2018 11:42:19 +0000 (13:42 +0200)
commit520741d08eb223703421df0b082bbbe522992f20
tree9e23153a00008bf32aa6c090ce14c93693d7c117
parentc0373eb019db70017878ee64d042de902e4c98ee
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.
man/systemd.offline-updates.xml
units/meson.build
units/system-update-pre.target [new file with mode: 0644]
units/system-update.target