Fix delaying systemd-timesyncd start correctly (#2082)

Unfortunately, orderings like Before= cannot be overriden by vendor
settings. This is mentioned in "Example 2. Overriding vendor settings"
on https://www.freedesktop.org/software/systemd/man/systemd.unit.html.

Correctly fix ordering by overriding the entire unit.
This commit is contained in:
Stefan Agner
2022-08-24 23:02:09 +02:00
committed by GitHub
parent a16354276f
commit ea5acb0950
2 changed files with 60 additions and 6 deletions

View File

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