-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Needless routines on Rpi (RTC, TZ) #71
Comments
iiab_TZ can set the timezone in roles/2-common/tasks/main.yml |
@jvonau @tim-moody is this issue coming together for IIAB 6.4 in coming weeks? (FWIW budget-sensitive a.k.a. poor folks are using RTC's less and less, on the RPi Zero hardware especially...not that we want to abandon support for RTC's of course...even if their use is very rare) |
I'm loosing interest in fix the mess. |
I hear you! @tim-moody & @georgejhunt please close and/or advise next steps. |
which PR has the change to 92-rtc-i2c.rules? |
@tim-moody None yet, needs discussion but there are 2 stanza that do the same thing for 92-rtc-i2c.rules |
I'll defer this to our IIAB 6.6 Milestone, if there are no objections? (Or does someone want to close / resolve / put this to rest for IIAB 6.5, as Feature Freeze approaches in 5 days?) |
In 92-rtc-i2c.rules the program being called is hwclock which is part of the util-linux package. The chrony and ntp packages are intended to be server packages but function as clients also(1). Both, more or less, do the same thing but are mutually exclusive to each other as servers. The ntpdate package is a client only package but you have to add ntp-pool files, while systemd provides timedatectl which uses chrony under the hood.(2) I'll bet timedatectl is already present in raspbian and other distros but requires configuring before timedatectl will work correctly.
Record rtc time in UTC: timedatectl set-local-rtc 0 This sets the third line of /etc/adjtime to UTC
Set the local timezone: timedatectl set-timezone 'local TZ' This sets up /etc/localtime to be a symlink to /usr/share/zoneinfo/'local TZ' Need if /etc/localtime does not exist.
Enable updating upon reboot: systemctl enable systemd-timedated
For immediate updating: systemctl start systemd-timedated
The text was updated successfully, but these errors were encountered: