Don't reuse init_cfg.json from old image during upgrade (#2036)

This commit is contained in:
Taoyu Li 2018-09-11 21:26:51 -07:00 committed by lguohan
parent 5c6948a90e
commit 47c9542c63

View File

@ -44,9 +44,6 @@ if [ -f /tmp/pending_config_migration ]; then
if [ "$enabled" = "true" ]; then
echo "Use minigraph.xml from old system..."
cp /etc/sonic/old_config/minigraph.xml /etc/sonic/
if [ -f /etc/sonic/old_config/init_cfg.json ]; then
cp /etc/sonic/old_config/init_cfg.json /etc/sonic/
fi
if [ -f /etc/sonic/old_config/snmp.yml ]; then
cp /etc/sonic/old_config/snmp.yml /etc/sonic/
fi