Skip to content

Commit 530e2dc

Browse files
authored
Only keep most recent one in old_config (#1884)
1 parent d166a01 commit 530e2dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/image_config/platform/rc.local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
226226
# and create a flag in /tmp/ to let updategraph service know
227227
if [ -d /host/old_config ]; then
228228
mv -f /host/old_config /etc/sonic/
229+
rm -rf /etc/sonic/old_config/old_config
229230
touch /tmp/pending_config_migration
230231
elif [ -f /host/minigraph.xml ]; then
231232
mkdir -p /etc/sonic/old_config

0 commit comments

Comments
 (0)