From 6b425a2b2f35fb90b00583fbf503f30816d2ebb7 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 1 Jul 2022 00:07:23 +0700 Subject: all: use drop-ins replacement to overwrite NTP configuration Per manual page timesyncd.conf(5) [1]: Initially, the main configuration file in /etc/systemd/ contains commented out entries showing the defaults as a guide to the administrator. ... Using drop-ins for local configuration is recommended over modifications to the main configuration file. The reason why the filename is 00- describe below It is recommended to prefix all filenames in those subdirectories with a two-digit number and a dash, to simplify the ordering of the files. Another reason is to prevent the system being littered with /etc/systemd/timesyncd.conf.pacnew files when systemd updated. [1] https://man.archlinux.org/man/timesyncd.conf.5 --- sys/etc/systemd/timesyncd.conf.d/00-google.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sys/etc/systemd/timesyncd.conf.d/00-google.conf (limited to 'sys/etc') diff --git a/sys/etc/systemd/timesyncd.conf.d/00-google.conf b/sys/etc/systemd/timesyncd.conf.d/00-google.conf new file mode 100644 index 0000000..4f07fb6 --- /dev/null +++ b/sys/etc/systemd/timesyncd.conf.d/00-google.conf @@ -0,0 +1,2 @@ +[Time] +NTP=metadata.google.internal -- cgit v1.3