Simon Westphahl 5c10b708f0 Add a role to convert diskimages between formats
This adds a role convert-diskimage which uses the qemu-img tool to
convert diskimages from one format to another. Currently supported image
formats are raw and qcow2.

Change-Id: I4770af04c37f39e0cce23d5dd59ead744bed7d74
2024-08-27 08:59:53 -07:00

20 lines
513 B
ReStructuredText

This role converts diskimages from one format to other using the qemu-img tool.
Currently, only Ubuntu and Debian distributions are supported.
**Role variables**
.. zuul:rolevar:: convert_diskimage_source_image
The path to the source image file.
.. zuul:rolevar:: convert_diskimage_target_image
The path of the desired target image file.
.. zuul:rolevar:: convert_diskimage_target_image_formats
:type: list
The desired formats of the target image.
Supported values are "raw" and "qcow2".