]> git.proxmox.com Git - pve-installer.git/commit - debian/control
fix #3165: start chrony after DHCP client for an opportunistic time-sync
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Mar 2021 14:43:56 +0000 (15:43 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Mar 2021 14:55:08 +0000 (15:55 +0100)
commit150291b3f88e7dfb364b246aff848cd6ed9deec8
tree01c1353434d7b94b57a972ac705e12615a08c29f
parentc2843d0435fbcf7731ec3d9b969b200d7f7cee85
fix #3165: start chrony after DHCP client for an opportunistic time-sync

We had reports about problems stemming from skewed clocks during
installation, especially if their time was in the future during
installation and on first real boot got synced up, certs may not be
valid yet, RRD may has written data before that correcting time-sync
went through and errors afterwards, once time jumped back, and lots
of other issues.

So, depend on the modern and nifty, but still small, NTP
implementation `chrony`. Start its daemon just after we asked for a
DHCP lease, as then it can directly try to sync with one of the
(Debian namespaced) NTP pools time server.

In the worst case (no network, no server available) we are as good as
now, but if chrony can sync the time we avoid lots of issues and
breakages

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/control
unconfigured.sh