sonic-buildimage/files/image_config/ntp
Aryeh Feigin 41a9813018
Finalize fast-reboot in warmboot finalizer (#14238)
- Why I did it
To solve an issue with upgrade with fast-reboot including FW upgrade which has been introduced since moving to fast-reboot over warm-reboot infrastructure.
As well, this introduces fast-reboot finalizing logic to determine fast-reboot is done.

- How I did it
Added logic to finalize-warmboot script to handle fast-reboot as well, this makes sense as using fast-reboot over warm-reboot this script will be invoked. The script will clear fast-reboot entry from state-db instead of previous implementation that relied on timer. The timer could expire in some scenarios between fast-reboot finished causing fallback to cold-reboot and possible crashes.

As well this PR updates all services/scripts reading fast-reboot state-db entry to look for the updated value representing fast-reboot is active.

- How to verify it
Run fast-reboot and check that fast-reboot entry exists in state-db right after startup and being cleared as warm-reboot is finalized and not due to a timer.
2023-04-09 16:59:15 +03:00
..
ntp [ntp]: Source interface support for NTP (#6033) 2020-12-21 05:34:13 -08:00
ntp-apparmor [ntp][apparmor] Allow apparmor read permission for ntpd under rw mount path of rootfs (#6040) 2020-12-18 04:57:35 -08:00
ntp-config.service [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00
ntp-config.sh Finalize fast-reboot in warmboot finalizer (#14238) 2023-04-09 16:59:15 +03:00
ntp-systemd-wrapper [ntp]: Source interface support for NTP (#6033) 2020-12-21 05:34:13 -08:00
ntp.conf.j2 [ntp] Fix ntp.conf template to allow setting of source port in CONFIG_DB (#7586) 2021-05-23 13:40:43 -07:00
ntp.service [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00