@sonic_installer.command('set-default')
@click.argument('image')
def set_default(image):
    ' Choose image to boot from by default '
    if ('set_default' in sys.argv):
        print_deprecation_warning('set_default', 'set-default')
    bootloader = get_bootloader()
    if (image not in bootloader.get_installed_images()):
        echo_and_log('Error: Image does not exist', LOG_ERR)
        raise click.Abort()
    bootloader.set_default_image(image)
Choose image to boot from by default
@sonic_installer.command('set-default')
@click.argument('image')
def set_default(image):
    '  '
    if ('set_default' in sys.argv):
        print_deprecation_warning('set_default', 'set-default')
    bootloader = get_bootloader()
    if (image not in bootloader.get_installed_images()):
        echo_and_log('Error: Image does not exist', LOG_ERR)
        raise click.Abort()
    bootloader.set_default_image(image)