From 50c7372275f217317eafeb4c9b69ae7ada4d3f7e Mon Sep 17 00:00:00 2001 From: Aryeh Feigin <101218333+arfeigin@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:03:23 +0200 Subject: [PATCH] Use temp view also in fast-reboot (#1401) syncd_init_common.sh is checking fast-reboot by reading /proc/cmdline. However, /proc/cmdline will not change after config reload. So, consider a case like fast-reboot -> config reload. In the config reload process, syncd_init_common.sh will also treat it as fast-reboot and probably enter wrong logic. --- syncd/scripts/syncd_init_common.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index db36529d2..81b94ff33 100644 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -26,10 +26,8 @@ else CMD_ARGS= fi -# Use temporary view between init and apply except when in fast-reboot -if [[ "$(cat /proc/cmdline)" != *"SONIC_BOOT_TYPE=fast-reboot"* ]]; then - CMD_ARGS+=" -u" -fi +# Use temporary view between init view and apply view +CMD_ARGS+=" -u" # Create a folder for SAI failure dump files mkdir -p /var/log/sai_failure_dump/