dhcpcd
dhcpcd copied to clipboard
DHCPCD keeps deleting the /etc/ntp.conf provided by Gentoo
Hello, I'm using netifrc+dhcpcd on gentoo. Pretty basic netifrc config file. I kept both the default dhcpcd and ntp config files. Whenever the network starts, dhcpcd keeps deleting the content of /etc/ntp.conf which prevents me to run ntpd -q -g. This shouldn't be the case because the default /etc/dhcpcd.conf file has this line commented :
# Most distributions have NTP support.
#option ntp_servers
I guess the issue is caused by the 50-ntp.conf file : https://github.com/NetworkConfiguration/dhcpcd/blob/master/hooks/50-ntp.conf
This line should be set by default in /etc/dhcpcd.conf when a /etc/ntp.conf file is provided by a Linux distribution :
env NTP_CONF=