On Thu, 09.02.17 16:14, Michał Zegan (webczat_...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to