[systemd-devel] systemd and hardware real time clock
Lennart Poettering
lennart at poettering.net
Thu Feb 9 17:49:29 UTC 2017
On Thu, 09.02.17 16:14, MichaĆ Zegan (webczat_200 at poczta.onet.pl) wrote:
> Btw, about the argument that the kernel should set rtc time because of
> wrong timestamps in logs, so I should compile the rtc into the kernel:
> let's compare: if I read rtc time during bootup (and rtc is a module),
> timestamps would be bad indeed for some time.
> But one case is, what if there is no rtc? then the kernel cannot read
> the clock. Neither can startup scripts or systemd (if it would ever
> try). so log timestamps would be invalid for far longer, until time is
> synchronized from network, and that will never happen if there is no
> network. So I still think that systemd could do it, or, better,
> initramfs could do it to make all real system logs have a valid
> timestamp, like not sure if initramfs logs are important for anything if
> there were no boot issues.
Not sure I follow? What precisely do you mean?
if there's no RTC then the timestamps of all logs before we managed to
get an NTP network fix will always be pretty bad, there's little we
can do about that? Or what are you saying?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list