Skip to content

Commit

Permalink
[sonic-installer] Fix an issue that old config is not preserved in ab…
Browse files Browse the repository at this point in the history
…oot image upgrade (sonic-net#122)
  • Loading branch information
taoyl-ms authored Oct 6, 2017
1 parent 2dab9da commit 3a40ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_installer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def install(url):
else:
os.chmod(image_path, stat.S_IXUSR)
run_command(image_path)
run_command("cp -r /etc/sonic /host/old_config")
run_command('grub-set-default --boot-directory=' + HOST_PATH + ' 0')
run_command("cp -r /etc/sonic /host/old_config")
click.echo('Done')


Expand Down

0 comments on commit 3a40ff9

Please sign in to comment.