[OE-core] [PATCH] systemd-conf: add timesyncd.conf
Paul Barker
paul at betafive.co.uk
Tue Nov 26 14:27:54 UTC 2019
On Tue, 26 Nov 2019, at 13:39, Cengiz Can wrote:
> Currently OE-Core's systemd-timesyncd defaults to Google's time servers.
>
> However those servers are not always reachable.
>
> ```
> systemd-timesyncd[242]:
> Timed out waiting for reply from 216.239.35.12:123 (time4.google.com).
> systemd-timesyncd[242]:
> Timed out waiting for reply from 216.239.35.0:123 (time1.google.com).
> systemd-timesyncd[242]:
> Timed out waiting for reply from 216.239.35.4:123 (time2.google.com).
> systemd-timesyncd[242]:
> Timed out waiting for reply from 216.239.35.8:123 (time3.google.com).
> systemd-timesyncd[242]:
> Timed out waiting for reply from 216.239.35.12:123 (time4.google.com).
> ```
>
> Even if they are, it is much more sensible to use pool servers from
> ntp.org.
>
> This patch adds a default timesyncd.conf with Google's time servers
> moved to Fallback and pool.ntp.org as primary time servers.
>
> Signed-off-by: Cengiz Can <cengiz at kernel.wtf>
> ---
> .../systemd/systemd-conf/timesyncd.conf | 17 +++++++++++++++++
> meta/recipes-core/systemd/systemd-conf_243.bb | 3 +++
> 2 files changed, 20 insertions(+)
> create mode 100644 meta/recipes-core/systemd/systemd-conf/timesyncd.conf
>
> diff --git a/meta/recipes-core/systemd/systemd-conf/timesyncd.conf
> b/meta/recipes-core/systemd/systemd-conf/timesyncd.conf
> new file mode 100644
> index 0000000000..84fdc354b8
> --- /dev/null
> +++ b/meta/recipes-core/systemd/systemd-conf/timesyncd.conf
> @@ -0,0 +1,17 @@
> +# This file is part of systemd.
> +#
> +# systemd is free software; you can redistribute it and/or modify it
> +# under the terms of the GNU Lesser General Public License as
> published by
> +# the Free Software Foundation; either version 2.1 of the License, or
> +# (at your option) any later version.
> +#
> +# Entries in this file show the compile time defaults.
> +# You can change settings by editing this file.
> +# Defaults can be restored by simply deleting this file.
> +#
> +# See timesyncd.conf(5) for details.
> +
> +[Time]
> +NTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
https://www.ntppool.org/en/vendors.html should be considered before changing the defaults to these values. We should probably get a vendor zone.
--
Paul Barker
More information about the Openembedded-core
mailing list