Fix delaying systemd-timesyncd start (#2069)

* Fix delaying systemd-timesyncd

Setting WantedBy=time-sync.target in a service.d config file does not
clear previous assignments of WantedBy. This caused the services to still
be pulled in by the sysinit.target, causing a ordering cycle and the
system to not start essential services.

* Remove sysinit.target from Before ordering
This commit is contained in:
Stefan Agner 2022-08-18 15:51:07 +02:00 committed by GitHub
parent 7a693bed46
commit f8c8198bb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -2,4 +2,5 @@
Wants=network-online.target
[Install]
WantedBy=
WantedBy=time-sync.target

View File

@ -1,6 +1,9 @@
[Unit]
RequiresMountsFor=/var/lib/systemd
After=network-online.target
Before=
Before=time-set.target shutdown.target
[Install]
WantedBy=
WantedBy=time-sync.target