Chrony takes between 20s to a minute to load, which slows down the whole boot cycle, even with a fairly minimal chrony configuration. Is there a way to make it faster, or check ntp servers after boot?
The following systemctl status chronyd.service took 26 seconds(using systemd-analyze blame)
Oct 31 11:42:00 thegram systemd[1]: Starting chrony NTP daemon...
Oct 31 11:42:00 thegram chronyd[1478]: chronyd version 4.8 starting (+CMDMON +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +NTS +SECHASH +IPV6 -DEBUG)
Oct 31 11:42:10 thegram chronyd[1478]: Loaded 0 symmetric keys
Oct 31 11:42:10 thegram chronyd[1478]: Having write access to /var/lib/chrony/chrony.keys
Oct 31 11:42:10 thegram chronyd[1478]: Frequency -5.029 +/- 2.346 ppm read from /var/lib/chrony/chrony.drift
Oct 31 11:42:18 thegram chronyd[1478]: System clock off from RTC by -0.842785 seconds (slew)
Oct 31 11:42:24 thegram chronyd[1478]: System's initial offset : 0.000356 seconds slow of true (slew)
Oct 31 11:42:26 thegram systemd[1]: Started chrony NTP daemon.
Oct 31 11:42:34 thegram chronyd[1478]: Selected source 2600:1f13:eda:9800:bcd8:839c:9b40:25b2 (oregon.time.system76.com)
As usual with questions stemming from systemd-analyze timings: Are you sure it’s actually delaying anything of significance? The only things that will be delayed are those listed in systemctl list-dependencies --before chronyd.service. systemd boots the parts of your system in parallel, and sure chronyd.service will delay multi-user.target from being reached, but that doesn’t matter; things are (generally) not ordered after multi-user.target, so nothing really should be delayed by it.
The system displays a black screen for 20 seconds to a minute after logining in before reaching the multi-user.target and graphical.target. The time that the black screen is displayed is around the same time as the delay by chronyd. And another thing is that no other service takes anywhere near 30 seconds to load
Top 5 services by systemd-analyze blame
Ok, well like I said, the only things delayed by chrony taking a long time will be listed in systemctl list-dependencies --before chronyd.service, so what does that say? Delaying multi-user.target isn’t inherently problematic. It’s not obvious that multi-user.target taking a long time is the reason for the lengthy black screen.