summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-20 12:46:18 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-20 12:46:18 +0200
commitc7668c1ce04fa85370432d197d2ccd9411e85649 (patch)
tree73f468ee727a2bcaf0783b24f3ffe08a77f7b84e /units
parent6dd9477dde37f3ecb7be6343543d3f30a9a40a10 (diff)
downloadsystemd-c7668c1ce04fa85370432d197d2ccd9411e85649.tar.gz
units: make system-update-pre.target a passive unit (#9349)
This is an additional synchronization point normally not needed. Hence, let's make it passive, i.e. pull it in from the unit which wants to be ordered before the update service rather than by the update service itself.
Diffstat (limited to 'units')
-rw-r--r--units/system-update-pre.target1
-rw-r--r--units/system-update.target3
2 files changed, 1 insertions, 3 deletions
diff --git a/units/system-update-pre.target b/units/system-update-pre.target
index dbd9ad92ec..163b75c220 100644
--- a/units/system-update-pre.target
+++ b/units/system-update-pre.target
@@ -13,4 +13,3 @@ Documentation=man:systemd.offline-updates(7)
Documentation=man:systemd.special(7) man:systemd-system-update-generator(8)
RefuseManualStart=yes
After=sysinit.target
-Before=system-update.target
diff --git a/units/system-update.target b/units/system-update.target
index b52a494892..be007e306d 100644
--- a/units/system-update.target
+++ b/units/system-update.target
@@ -12,7 +12,6 @@ Description=Offline System Update
Documentation=man:systemd.offline-updates(7)
Documentation=man:systemd.special(7) man:systemd-system-update-generator(8)
Requires=sysinit.target
-After=sysinit.target
+After=sysinit.target system-update.target
AllowIsolate=yes
-Wants=system-update-pre.target
Wants=system-update-cleanup.service