@sonic_installer.command('list')
def list_command():
    ' Print installed images '
    bootloader = get_bootloader()
    images = bootloader.get_installed_images()
    curimage = bootloader.get_current_image()
    nextimage = bootloader.get_next_image()
    click.echo(('Current: ' + curimage))
    click.echo(('Next: ' + nextimage))
    click.echo('Available: ')
    for image in images:
        click.echo(image)
Print installed images
@sonic_installer.command('list')
def list_command():
    '  '
    bootloader = get_bootloader()
    images = bootloader.get_installed_images()
    curimage = bootloader.get_current_image()
    nextimage = bootloader.get_next_image()
    click.echo(('Current: ' + curimage))
    click.echo(('Next: ' + nextimage))
    click.echo('Available: ')
    for image in images:
        click.echo(image)