Only keep most recent one in old_config (#1884)

This commit is contained in:
Taoyu Li 2018-07-31 12:50:54 -07:00 committed by GitHub
parent d166a01502
commit 530e2dc4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
# and create a flag in /tmp/ to let updategraph service know
if [ -d /host/old_config ]; then
mv -f /host/old_config /etc/sonic/
rm -rf /etc/sonic/old_config/old_config
touch /tmp/pending_config_migration
elif [ -f /host/minigraph.xml ]; then
mkdir -p /etc/sonic/old_config