Only keep most recent one in old_config (#1884)
This commit is contained in:
parent
d166a01502
commit
530e2dc4e1
@ -226,6 +226,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
|
|||||||
# and create a flag in /tmp/ to let updategraph service know
|
# and create a flag in /tmp/ to let updategraph service know
|
||||||
if [ -d /host/old_config ]; then
|
if [ -d /host/old_config ]; then
|
||||||
mv -f /host/old_config /etc/sonic/
|
mv -f /host/old_config /etc/sonic/
|
||||||
|
rm -rf /etc/sonic/old_config/old_config
|
||||||
touch /tmp/pending_config_migration
|
touch /tmp/pending_config_migration
|
||||||
elif [ -f /host/minigraph.xml ]; then
|
elif [ -f /host/minigraph.xml ]; then
|
||||||
mkdir -p /etc/sonic/old_config
|
mkdir -p /etc/sonic/old_config
|
||||||
|
Reference in New Issue
Block a user