summaryrefslogtreecommitdiffstats
path: root/units/systemd-timesyncd.service.in
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-05-07 11:15:27 +0200
committerMike Yuan <me@yhndnzj.com>2023-05-12 20:14:02 +0200
commitf0ad3e6b9652fe785245934ff8604cc897d3b8f4 (patch)
treecfda6942a1fa113e871af55c1534fb6f01ab34f1 /units/systemd-timesyncd.service.in
parentFix Positivo CF40CM-V2 key toggle touchpad (diff)
downloadsystemd-f0ad3e6b9652fe785245934ff8604cc897d3b8f4.tar.xz
systemd-f0ad3e6b9652fe785245934ff8604cc897d3b8f4.zip
units: Add missing dependencies on initrd-switch-root.target
These are all services that valid to be run in the initrd, so let's make sure they have the appropriate dependencies on initrd-switch-root.target so that they are stopped when we're about to switch root.
Diffstat (limited to 'units/systemd-timesyncd.service.in')
-rw-r--r--units/systemd-timesyncd.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in
index c606461091..b77bb0d27b 100644
--- a/units/systemd-timesyncd.service.in
+++ b/units/systemd-timesyncd.service.in
@@ -14,8 +14,8 @@ ConditionCapability=CAP_SYS_TIME
ConditionVirtualization=!container
DefaultDependencies=no
After=systemd-sysusers.service
-Before=time-set.target sysinit.target shutdown.target
-Conflicts=shutdown.target
+Before=time-set.target sysinit.target shutdown.target initrd-switch-root.target
+Conflicts=shutdown.target initrd-switch-root.target
Wants=time-set.target
[Service]