@sonic_installer.command('set-next-boot')
@click.argument('image')
def set_next_boot(image):
    ' Choose image for next reboot (one time action) '
    if ('set_next_boot' in sys.argv):
        print_deprecation_warning('set_next_boot', 'set-next-boot')
    bootloader = get_bootloader()
    if (image not in bootloader.get_installed_images()):
        echo_and_log('Error: Image does not exist', LOG_ERR)
        sys.exit(1)
    bootloader.set_next_image(image)
Choose image for next reboot (one time action)
@sonic_installer.command('set-next-boot')
@click.argument('image')
def set_next_boot(image):
    '  '
    if ('set_next_boot' in sys.argv):
        print_deprecation_warning('set_next_boot', 'set-next-boot')
    bootloader = get_bootloader()
    if (image not in bootloader.get_installed_images()):
        echo_and_log('Error: Image does not exist', LOG_ERR)
        sys.exit(1)
    bootloader.set_next_image(image)