[warm reboot] save configuration after warm reboot (#3200)
* [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
This commit is contained in:
parent
bce8fee86a
commit
7cf90ec441
@ -78,6 +78,11 @@ if [[ x"${WARM_BOOT}" != x"true" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
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}
|
list=${COMP_LIST}
|
||||||
|
|
||||||
# Wait up to 5 minutes
|
# Wait up to 5 minutes
|
||||||
|
Reference in New Issue
Block a user