From 2322375d0ae8e6075b3570ae0685fc0eb717d497 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Wed, 29 Aug 2018 12:29:36 -0700 Subject: [PATCH] Use syncd -u option (#341) Signed-off-by: Qi Luo --- syncd/scripts/syncd_init_common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 28a52dbe4eba..cbc7b4c06fd4 100755 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -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' @@ -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