Skip to content

Add a feature to pass user provided files during qcow2ova image conversion#851

Open
Amulyam24 wants to merge 1 commit intoppc64le-cloud:mainfrom
Amulyam24:qcow2ova-add-files
Open

Add a feature to pass user provided files during qcow2ova image conversion#851
Amulyam24 wants to merge 1 commit intoppc64le-cloud:mainfrom
Amulyam24:qcow2ova-add-files

Conversation

@Amulyam24
Copy link
Contributor

@Amulyam24 Amulyam24 commented Jan 8, 2026

What this PR does / why we need it:
This PR adds a feature to allow user to add custom files to the image built.
--write-files-list is a comma separated list of files and --write-to-dir-path is the path where the files are written in the built image

example:

pvsadm image qcow2ova --image-name test-image --image-dist centos --image-url https://cloud.centos.org/centos/10-stream/ppc64le/images/CentOS-Stream-GenericCloud-10-latest.ppc64le.qcow2 --prep-template ./image-prep.template --write-files-list key.pub,files --write-to-dir-path /home/user

Tested the following scenarios

  1. Copy multiple files and directories
  2. Copy nested directories
  3. If destination path doesn't exist, creates and copies to it

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #811

Special notes for your reviewer:

**Output/Demonstration

Add a feature to pass user provided files during qcow2ova image conversion

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Amulyam24
Once this PR has been reviewed and has the lgtm label, please assign mkumatag for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add feature to pass or mount user files during image qcow2ova conversion

2 participants