aboutsummaryrefslogtreecommitdiff
path: root/sys/etc/systemd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-07-01 00:07:23 +0700
committerShulhan <ms@kilabit.info>2022-07-25 19:29:22 +0700
commit6b425a2b2f35fb90b00583fbf503f30816d2ebb7 (patch)
tree443f463cae982a254787702edd58c9e5d3cfd8fd /sys/etc/systemd
parentabf42e55f9ad473f2e7ef28d9aadb389cff7ecfa (diff)
downloadcompute-archlinux-image-builder-6b425a2b2f35fb90b00583fbf503f30816d2ebb7.tar.xz
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
Diffstat (limited to 'sys/etc/systemd')
-rw-r--r--sys/etc/systemd/timesyncd.conf.d/00-google.conf2
1 files changed, 2 insertions, 0 deletions
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