Skip to content

Commit 7cf90ec

Browse files
committed
[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 <[email protected]> * Update finalize-warmboot.sh
1 parent bce8fee commit 7cf90ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

files/image_config/warmboot-finalizer/finalize-warmboot.sh

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ if [[ x"${WARM_BOOT}" != x"true" ]]; then
7878
exit 0
7979
fi
8080

81+
# No need to wait for the reconciliation process. Database has been loaded
82+
# and migrated. This is good enough to save a copy.
83+
debug "Save in-memory database after warm reboot ..."
84+
config save -y
85+
8186
list=${COMP_LIST}
8287

8388
# Wait up to 5 minutes

0 commit comments

Comments
 (0)