Skip to content

Commit

Permalink
[warm reboot] save configuration after warm reboot (#3200)
Browse files Browse the repository at this point in the history
* [warm reboot] save configuration after warm reboot

After warm reboot, save a copy of in memory database to config_db.json,
upgrade procedure might have removed config_db.json to force new image
to reload minigraph. However, reload minigraph is skipped during warm
reboot. Missing config_db.json would cause device to fault in next
non-upgrading cold/fast reboot.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* Update finalize-warmboot.sh
  • Loading branch information
yxieca authored Jul 24, 2019
1 parent dbda34f commit 9d64ce7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/image_config/warmboot-finalizer/finalize-warmboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ if [[ x"${WARM_BOOT}" != x"true" ]]; then
exit 0
fi

# No need to wait for the reconciliation process. Database has been loaded
# and migrated. This is good enough to save a copy.
debug "Save in-memory database after warm reboot ..."
config save -y

list=${COMP_LIST}

# Wait up to 5 minutes
Expand Down

0 comments on commit 9d64ce7

Please sign in to comment.