Skip to content

Commit 2322375

Browse files
qiluo-msftlguohan
authored andcommitted
Use syncd -u option (#341)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
1 parent 2c2a13c commit 2322375

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

syncd/scripts/syncd_init_common.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ if [ -x $CMD_DSSERVE ]; then
1818
CMD_ARGS=$CMD_DSSERVE_ARGS
1919
else
2020
CMD=$CMD_SYNCD
21+
CMD_ARGS=
2122
fi
2223

24+
# Use temporary view between init and apply
25+
CMD_ARGS+=" -u"
26+
2327
case "$(cat /proc/cmdline)" in
2428
*fast-reboot*)
2529
FAST_REBOOT='yes'
@@ -74,7 +78,7 @@ config_syncd_centec()
7478

7579
[ -e /dev/linux_dal ] || mknod /dev/linux_dal c 198 0
7680
[ -e /dev/net/tun ] || ( mkdir -p /dev/net && mknod /dev/net/tun c 10 200 )
77-
81+
7882
if [ $FAST_REBOOT == "yes" ]; then
7983
CMD_ARGS+=" -t fast"
8084
fi

0 commit comments

Comments
 (0)