From 429524c0406baeddf270d6e2df6e5a60a410e61a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 15 Dec 2015 12:49:27 +0000 Subject: [PATCH] ntp: Prefer local clock MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For some reason, ntp won't use a local clock even if it is there and up and running. Therefore we need to "prefer" our only source of time. Signed-off-by: Michael Tremer Tested-by: Daniel Weismüller --- lfs/ntp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/ntp b/lfs/ntp index 7c23a3c407..2d04b17ba0 100644 --- a/lfs/ntp +++ b/lfs/ntp @@ -86,7 +86,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) chown -R ntp:ntp /etc/ntp echo "disable monitor" > /etc/ntp.conf echo "restrict default nomodify noquery" >> /etc/ntp.conf - echo "server 127.127.1.0" >> /etc/ntp.conf + echo "server 127.127.1.0 prefer" >> /etc/ntp.conf echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf -- 2.39.2