Skip to content

Commit 3a40ff9

Browse files
authored
[sonic-installer] Fix an issue that old config is not preserved in aboot image upgrade (sonic-net#122)
1 parent 2dab9da commit 3a40ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonic_installer/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ def install(url):
154154
else:
155155
os.chmod(image_path, stat.S_IXUSR)
156156
run_command(image_path)
157-
run_command("cp -r /etc/sonic /host/old_config")
158157
run_command('grub-set-default --boot-directory=' + HOST_PATH + ' 0')
158+
run_command("cp -r /etc/sonic /host/old_config")
159159
click.echo('Done')
160160

161161

0 commit comments

Comments
 (0)