Skip to content

Commit

Permalink
[updategraph] Remove pending_initialization flag after first boot (#1538
Browse files Browse the repository at this point in the history
)
  • Loading branch information
taoyl-ms authored and lguohan committed Mar 28, 2018
1 parent 2a1ae65 commit 4daf002
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions files/image_config/updategraph/updategraph
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ if [ -f /tmp/pending_config_migration ]; then
exit 0
fi

if [ -f /tmp/pending_config_initialization ] && [ "$enabled" != "true" ]; then
copy_default_minigraph
reload_minigraph
sonic-cfggen -d --print-data > /etc/sonic/config_db.json
if [ -f /tmp/pending_config_initialization ]; then
rm -f /tmp/pending_config_initialization
exit 0
if [ "$enabled" != "true" ]; then
copy_default_minigraph
reload_minigraph
sonic-cfggen -d --print-data > /etc/sonic/config_db.json
exit 0
fi
fi

if [ "$enabled" = "reload_only" ]; then
Expand Down

0 comments on commit 4daf002

Please sign in to comment.