I'm currently wondering where Raspbian gets the "current" date and time during the boot on a RaspbianPI.
The system has a RTC device connected via I2C. The date/time from the RTC is read during boot by a systemd service unit which results in the correct date/time.
Additionally the NTP client is configured.
fake-hwclock package is installed but deactivated in systemd.
While Raspbian is booting it generates log messages to
/var/log/syslog with a date/time
Nov 3 .... I expected it - as written by roaima - to be
Jan 1 1970 but it is not ...
Example message in
Nov 3 18:16:51 raspberrypi kernel: [ 0.000000] Booting Linux on physical CPU 0xf00
When systemd reaches the point where it runs my RTC script (the RTC device is connected via I2C) it sets the date and time correctly:
Oct 19 13:45:50 raspberrypi systemd: Time has been changed
So, the question is: where is that strange
Nov 3 date stored?! Is it somewhere stored in a file? Is it hardcoded into the kernel?