diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2020-01-02 14:34:20 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-01-12 13:56:10 +0100 |
commit | eebfcb0128c3f0999d2a3d0e0f18c55c259b6f90 (patch) | |
tree | 986b6c92a4f53e6b3a42aae61ee3c822c4dc15b0 | |
parent | e2b57fbfac85f650b9440279cf75a1045e81f83c (diff) | |
download | ptxdist-eebfcb0128c3f0999d2a3d0e0f18c55c259b6f90.tar.gz ptxdist-eebfcb0128c3f0999d2a3d0e0f18c55c259b6f90.tar.xz |
systemd: install systemd-timesync.list in ntp-units.d
When systemd-timesyncd is used, there should be an entry in ntp-units.d.
Otherwise, timedatectl set-ntp sometimes fails with "NTP not supported".
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list | 1 | ||||
-rw-r--r-- | rules/systemd.make | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list b/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list new file mode 100644 index 000000000..d5959ade8 --- /dev/null +++ b/projectroot/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list @@ -0,0 +1 @@ +systemd-timesyncd.service diff --git a/rules/systemd.make b/rules/systemd.make index 881dff8ff..325670a7f 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -432,6 +432,8 @@ ifdef PTXCONF_SYSTEMD_TIMEDATE /var/lib/systemd/timesync) @$(call install_link, systemd, ../systemd-timesyncd.service, \ /usr/lib/systemd/system/sysinit.target.wants/systemd-timesyncd.service) + @$(call install_alternative, systemd, 0, 0, 0664, \ + /usr/lib/systemd/ntp-units.d/80-systemd-timesync.list) endif ifdef PTXCONF_SYSTEMD_VCONSOLE |