Re: RPI4 + ntpdate + unbound

From: John Kennedy <warlock_at_phouka.net>
Date: Fri, 08 Jul 2022 14:24:35 UTC
On Thu, Jul 07, 2022 at 12:56:05PM +0200, Ronald Klop wrote:
> Based on this idea I created a /etc/rc.d/fakertc script. It saves the datetime on shutdown and restores it early on boot.
> 
> Not polished yet. But it works on my RPI4 14-CURRENT.
> With this script the time does not go backwards in the logs anymore. And it should provide a more reasonable time for validating certificates in DNSSEC/ipsec or similar processes before ntpdate kicks in.

  None of these is perfect, but it does stop the clock from rolling
backwards and doesn't require a network.  It should solve the issue with
DNSSEC (since even days shouldn't matter for cert validity with enough
servers).  I'm not sure if ntpd will be happy (does the --force-step-once
work if you boot up, don't have a network for a chunk of time, then regain
network?).