diff --git a/sonic_installer/main.py b/sonic_installer/main.py index 58c174c8068b..0bdee1ff0cf6 100644 --- a/sonic_installer/main.py +++ b/sonic_installer/main.py @@ -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')