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

Generate the ALL-MANIFEST for bootc disk images #512

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

achilleas-k
Copy link
Member

The bootc-disk image manifest now always contains all pipelines needed to generate all image types. This way we can build any combination of disk images depending on what we need to export without needing to conditionally add or remove pipelines.

The Platform no longer needs to be read, since we're generating all of the formats and the architecture depends on the source container. However, the Platform is still required for specifying the boot mode (enabling or disabling BIOS boot).

The first return value of the InstantiateManifestFromContainers() function, the artifact, was not used and has been removed now.

We never used it in bootc-image-builder.
The bootc-disk image manifest now always contains all pipelines needed
to generate all image types.  This way we can build any combination of
disk images depending on what we need to export without needing to
conditionally add or remove pipelines.

The Platform no longer needs to be read, since we're generating all of
the formats and the architecture depends on the source container.
However, the Platform is still required for specifying the boot mode
(enabling or disabling BIOS boot).

The first return value of the InstantiateManifestFromContainers()
function, the artifact, was not used and has been removed now.
Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

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

This is amazing, THANK YOU!

(needs a linter fix)

pkg/image/bootc_disk.go Show resolved Hide resolved
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mvo5 mvo5 added this pull request to the merge queue Mar 13, 2024
Copy link
Contributor

@kingsleyzissou kingsleyzissou left a comment

Choose a reason for hiding this comment

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

Neat!

Merged via the queue into osbuild:main with commit 681fea8 Mar 13, 2024
14 checks passed
@achilleas-k achilleas-k deleted the bootc-disk/all-manifest branch March 13, 2024 11:48
achilleas-k added a commit to achilleas-k/bootc-image-builder that referenced this pull request Mar 13, 2024
github-merge-queue bot pushed a commit to osbuild/bootc-image-builder that referenced this pull request Mar 14, 2024
github-merge-queue bot pushed a commit to osbuild/bootc-image-builder that referenced this pull request Mar 14, 2024
github-merge-queue bot pushed a commit to osbuild/bootc-image-builder that referenced this pull request Mar 14, 2024
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.

4 participants