summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-02-03 12:15:00 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-02-24 10:36:47 +0100
commit29a8fbf49a0d16a25db8968f67a1f76f3d2021e9 (patch)
tree0c581712203b93d3e450205aef9b432f46e3b73b /units
parent0802f62efc1d1c67d5be67223b529c93536cf2ed (diff)
downloadsystemd-29a8fbf49a0d16a25db8968f67a1f76f3d2021e9.tar.gz
units: move resolved to sysinit.target (from basic.target)
79a67f3ca4d32c37b5e754501852a85eae908a6a pulled systemd-resolved.service in from basic.target instead of multi-user.target, i.e. the idea is to make it an early boot service, instead of a regular service. However, early boot services are supposed to be in sysinit.target, not basic.target (the latter is just one that combines the early boot services in sysinit.target, the sockets in sockets.targt, the mounts in local-fs.target and so on into one big target). Also, the comit actually didn't add a synchronization point, i.e. not Before=, so that the whole thing was racy. Let's fix all that. Follow-up for 79a67f3ca4d32c37b5e754501852a85eae908a6a
Diffstat (limited to 'units')
-rw-r--r--units/systemd-resolved.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/systemd-resolved.service.in b/units/systemd-resolved.service.in
index 91e7c141e3..621fe34224 100644
--- a/units/systemd-resolved.service.in
+++ b/units/systemd-resolved.service.in
@@ -16,7 +16,7 @@ Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver
DefaultDependencies=no
After=systemd-sysusers.service
-Before=network.target nss-lookup.target shutdown.target
+Before=sysinit.target network.target nss-lookup.target shutdown.target
Conflicts=shutdown.target
Wants=nss-lookup.target
@@ -54,5 +54,5 @@ User=systemd-resolve
{{SERVICE_WATCHDOG}}
[Install]
-WantedBy=basic.target
+WantedBy=sysinit.target
Alias=dbus-org.freedesktop.resolve1.service