mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/chrony: install default config
chrony needs a config file to work: Could not open /etc/chrony.conf : No such file or directory Many distros [1][2] use example 2 as the default config, and a few distros (such as freeBSD [3]) use example 3. Example 1 [4] is very brief. Example 2 [5] fully includes example 1 and sets the log directory. Example 3 [6] is almost entirely comments intended to serve as documentation. Therefore, we have chosen to use example 2 as the out of the box configuration in Buildroot. [1]: https://github.com/microsoft/azurelinux/blob/3.0-stable/SPECS/chrony/chrony.spec#L72 [2]: https://github.com/vmware/photon/blob/5.0-Beta/SPECS/chrony/chrony.spec#L33 [3]: https://github.com/FreeBSDDesktop/freebsd-ports/blob/master/net/chrony/Makefile#L93-L94 [4]: https://gitlab.com/chrony/chrony/-/blob/3.5-stable/examples/chrony.conf.example1 [5]: https://gitlab.com/chrony/chrony/-/blob/3.5-stable/examples/chrony.conf.example2#L35 [6]: https://gitlab.com/chrony/chrony/-/blob/3.5-stable/examples/chrony.conf.example3#L30-34 Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
1ed8573cdd
commit
1b753a3c14
@@ -71,6 +71,7 @@ endef
|
||||
|
||||
define CHRONY_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
||||
$(INSTALL) -D -m 644 $(@D)/examples/chrony.conf.example2 $(TARGET_DIR)/etc/chrony.conf
|
||||
endef
|
||||
|
||||
define CHRONY_INSTALL_INIT_SYSV
|
||||
|
||||
Reference in New Issue
Block a user