Skip to content

Commit

Permalink
Use temp view also in fast-reboot (sonic-net#1401)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arfeigin authored and shiraez committed Dec 12, 2024
1 parent d1fed9c commit 50c7372
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 50c7372

Please sign in to comment.