From 8cb42d9cf59564016b9a8a67b21487bb1219d9f9 Mon Sep 17 00:00:00 2001 From: afeigin Date: Mon, 23 Jan 2023 11:12:46 +0000 Subject: [PATCH 1/2] Use new value of STATE_DB FAST_REBOOT entry --- syncd/scripts/syncd_init_common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index ef1d77f48..a19f53d70 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -49,7 +49,8 @@ case "$(cat /proc/cmdline)" in ;; *SONIC_BOOT_TYPE=fast*|*fast-reboot*) # check that the key exists - if [[ $(sonic-db-cli STATE_DB GET "FAST_REBOOT|system") == "1" ]]; then + SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_REBOOT|system"` + if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then FAST_REBOOT='yes' else FAST_REBOOT='no' From fd395ee3fc5005cb46e40ff5863e42277e83d245 Mon Sep 17 00:00:00 2001 From: afeigin Date: Tue, 14 Feb 2023 14:34:19 +0000 Subject: [PATCH 2/2] Rename FAST_REBOOT table --- syncd/scripts/syncd_init_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index a19f53d70..9214ed552 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -49,7 +49,7 @@ 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_REBOOT|system"` + SYSTEM_FAST_REBOOT=`sonic-db-cli STATE_DB GET "FAST_RESTART_ENABLE_TABLE|system"` if [[ ${SYSTEM_FAST_REBOOT} == "enable" ]]; then FAST_REBOOT='yes' else