Repository navigation
swclock on Raspberry Pi
#988
Unanswered
anthumchris
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Could
swclocksave and preserve the time/clock after rebooting a battery-less Raspberry Pi (RPI)? I don't fully understand what swclock is meant to be used for and if that's possible.Problem & testing
Some services incorrectly show as being started days ago. I'm running diskless (in-memory) Alpine Linux with busybox NTP (network time protocol), and the RPI time isn't preserved on reboots. These start times are calculated from the read-only Alpine ISO files:
I modified
/etc/conf.d/swclockto use a persistent file with an explicit timestamp from midnight yesterday:After rebooting, the services now show as being started yesterday:
The services don't show a newer start time until I manually restart
swclockand reboot:(after reboot):
All reactions