hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Set fake-hwclock to current date #151

Closed Legion2 closed 4 years ago

Legion2 commented 4 years ago

Raspberry Pi only have a fake hwclock. It's used on boot and shutdown to get and save the "current" date. But the fake-hwclock is only updated while the Pi is running and so on first boot the date is usually very far in the past (the date when the image was created). To fix this, the fake-hwclock data file /etc/fake-hwclock.data should be updated when the image is flashed on the sd card. This will minimize the offset of the fake-hwclock on first boot.

This will most likely also fix hypriot/image-builder-rpi#304.

StefanScherer commented 4 years ago

Fixed with #162