dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

DHCPCD keeps deleting the /etc/ntp.conf provided by Gentoo

Open F3llFr0mTh3Sky opened this issue 9 months ago • 6 comments

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=

F3llFr0mTh3Sky avatar Nov 03 '23 22:11 F3llFr0mTh3Sky