random-archer / mkinitcpio-systemd-tool

Provisioning tool for systemd in initramfs (systemd-tool)
https://www.archlinux.org/packages/community/any/mkinitcpio-systemd-tool/
Other
112 stars 27 forks source link

Add initrd-ntpd.service for timesync #91

Closed kescherCode closed 11 months ago

kescherCode commented 2 years ago

As I mentioned in a comment on #77, for use-cases such as a connection to WireGuard, an accurate system time is required. The proper solution for what I proposed in my comment is what has resulted in this pull request.

I decided to write a unit file to use the ntpd included in busybox to synchronize the time, since this doesn't require including any new binaries previously not included in the initramfs.