I am trying to understand how my RTC clock is getting set. And I am unable to find a proper documentation on it.
After I switched to a read only RootFS. I noticed my systemclock was a getting set 1969 when the machine was not connected to a network. But as soon as I connect it to a network system clock would be set properly which was expected.
The issue came arrived when some of the network did not allow NTP communication which made my system stuck to 1969 which inturn made it fail TLS certification so bye bye https
The solution that I have come up with is to synchronize the hwclock with the system clock.
But how am I getting the right hwclock? Which service is setting it? If I know what service is setting it maybe I can know how it is being set and take care of some edge cases.
My initial hunch is that a mender service might be setting it. Since I have to register the device on the mender portal and it uses UTC time to sync the devices?
Am I right?