Skip to content

Commit

Permalink
Use syncd -u option (sonic-net#341)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
  • Loading branch information
qiluo-msft authored and lguohan committed Aug 29, 2018
1 parent 2c2a13c commit 2322375
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ if [ -x $CMD_DSSERVE ]; then
CMD_ARGS=$CMD_DSSERVE_ARGS
else
CMD=$CMD_SYNCD
CMD_ARGS=
fi

# Use temporary view between init and apply
CMD_ARGS+=" -u"

case "$(cat /proc/cmdline)" in
*fast-reboot*)
FAST_REBOOT='yes'
Expand Down Expand Up @@ -74,7 +78,7 @@ config_syncd_centec()

[ -e /dev/linux_dal ] || mknod /dev/linux_dal c 198 0
[ -e /dev/net/tun ] || ( mkdir -p /dev/net && mknod /dev/net/tun c 10 200 )

if [ $FAST_REBOOT == "yes" ]; then
CMD_ARGS+=" -t fast"
fi
Expand Down

0 comments on commit 2322375

Please sign in to comment.