Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image,manifest: allow using the qcow2 pipeline without a build pipeline (HMS-3318) #376

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Jan 16, 2024

This commit allows to use the qcow2 pipeline outside of a build pipeline. The use-case is the bootc-image-builder that will use arbitrary containers as buildroots and we cannot assume that they have qemu-util installed. And because bootc-image-builder is already a container we can install qemu-util there and be confident that it will work.

Note that there is one small drive-by one-ine improvement in one of the panics()s. I had a bit of trouble writing the test and this helped me to pinpoint what is missing. Happy to remove it again (as it's not needed for the PR itself).

@mvo5 mvo5 requested a review from ondrejbudai January 16, 2024 09:49
This commit allows to use the qcow2 pipeline outside of a build
pipeline. The use-case is the `bootc-image-builder` that will use
arbitrary containers as buildroots and we cannot assume that they
have `qemu-util` installed. And because `bootc-image-builder` is
already a container we can install `qemu-util` there and be
confident that it will work.
@mvo5 mvo5 changed the title image,manifest: allow using the qcow2 pipeline without a build pipeline image,manifest: allow using the qcow2 pipeline without a build pipeline (HMS-3318) Jan 16, 2024
@achilleas-k achilleas-k self-requested a review January 17, 2024 11:32
Copy link
Member

@achilleas-k achilleas-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@achilleas-k
Copy link
Member

Note that there is one small drive-by one-ine improvement in one of the panics()s. I had a bit of trouble writing the test and this helped me to pinpoint what is missing. Happy to remove it again (as it's not needed for the PR itself).

Not a problem

@achilleas-k achilleas-k added this pull request to the merge queue Jan 17, 2024
Merged via the queue into osbuild:main with commit eb24e7e Jan 17, 2024
10 checks passed
@mvo5 mvo5 deleted the image/qcow2-from-bib branch January 18, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants