[arch-projects] hwclock adjust file
dpmcgee at gmail.com
Mon Jun 6 13:12:33 EDT 2011
On Sun, Jun 5, 2011 at 2:01 PM, Tom Gundersen <teg at jklm.no> wrote:
> Sorry, to reply to myself, but as always talking about my problems
> makes it all clearer:
> On Sun, Jun 5, 2011 at 7:12 PM, Tom Gundersen <teg at jklm.no> wrote:
>> I don't really have a "real" solution to this problem. It seems
>> hwclock is really, really messed up. That said, maybe I'm missing the
>> point. I'll explain the way I see it, and you tell me if i got it all
> Turns out I missed the point, and that things are actually fine they
> way they are upstream. We should slightly change our initscripts
> though, and move adjfile to /etc.
> The point being, that we never need to write to adjfile on boot, but
> we can read it, it will only be written to on shutdown. Furthermore,
> --systohc/--set will only be called manually by the sysadmin when s/he
> knows that it makes sense to calibrate the time and drift.
> --systohc, if you know that your system has been running since the
> last --set/--systohc this can be used to calculate the drift-rate.
> --set, this is (obviously) used to set the real time, and to calculate
> the drift-rate since the last --set/--systohc.
We moved this out of /etc because it is written to, and /etc/ should
be treated as read-only by system scripts if I'm not mistaken. I think
your logic is totally off here, as /etc/ should be read only?
More information about the arch-projects