[faiproject/fai] 213e56: Save any updated time to hardware

Anton Lundin noreply at github.com
Mi Okt 2 15:26:01 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/faiproject/fai
  Commit: 213e56e7bea7fadbfcfecf4feb7ce1d505b1dc28
      https://github.com/faiproject/fai/commit/213e56e7bea7fadbfcfecf4feb7ce1d505b1dc28
  Author: Anton Lundin <glance at ac2.se>
  Date:   2024-10-02 (Wed, 02 Oct 2024)

  Changed paths:
    M lib/subroutines

  Log Message:
  -----------
  Save any updated time to hardware

If a machine boots fai, with a hardware clock that's wrong,
it can be set correctly by either rdate or ntpdate.

The issue is that with a modern Debian 12, the later call to udevadm
trigger will trigger a:
/usr/lib/udev/hwclock-set /dev/rtc0

Where the wrong time is re-read from hardware, thus overwriting the
newly corrected time.

This prevent this by just saving the time to hardware after any
rdate/ntpdate calls.



To unsubscribe from these emails, change your notification settings at https://github.com/faiproject/fai/settings/notifications


Mehr Informationen über die Mailingliste linux-fai-commit