Skip to content

Commit

Permalink
Use new value of STATE_DB FAST_REBOOT entry (sonic-net#1217)
Browse files Browse the repository at this point in the history
Dedicated PR for 202205 branch similar to sonic-net#1213 as part of fast-reboot finalizer implementation.

Update syncd_init_common to check if fast-reboot is enabled according to the new value for FAST_REBOOT entry in STATE_DB.

This PR should come along with the following PRs:
sonic-net/sonic-utilities#2724
sonic-net/sonic-platform-daemons#343
sonic-net/sonic-buildimage#14143

This set of PRs solves the issue sonic-net/sonic-buildimage#13251
  • Loading branch information
arfeigin authored Mar 10, 2023
1 parent f764a2e commit 23ac336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ case "$(cat /proc/cmdline)" in
;;
*SONIC_BOOT_TYPE=fast*|*fast-reboot*)
# check that the key exists
SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_RESTART_ENABLE_TABLE|system"`
if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then
SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB hget "FAST_RESTART_ENABLE_TABLE|system" enable`
if [[ x"${SYSTEM_FAST_REBOOT}" == x"true" ]]; then
FAST_REBOOT='yes'
else
FAST_REBOOT='no'
Expand Down

0 comments on commit 23ac336

Please sign in to comment.