[updategraph] Remove pending_initialization flag after first boot (#1538)

This commit is contained in:
Taoyu Li 2018-03-28 09:06:48 -07:00 committed by lguohan
parent 2a1ae65a85
commit 4daf002859

View File

@ -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