ova-compose: add raw_image option for disks #57
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the
raw_image
option to disks. Example:If present, the image file will be converted from raw image format to vmdk format, which will be packaged into the OVA (if configured to create an OVA). If the option
disk_image
is set, the vmdk file will be named to that value, otherwise, the name will be the same but with any extension stripped and.vmdk
appended.In the above example, the
vmdk
file will be nameddummy.vmdk
.If the vmdk file already exists and is newer than the raw image file it will not be recreated. This is to avoid unnecessary conversions since this is time-intensive. If the raw image file does not exist but the vmdk file does, the vmdk file will be used, with a warning.