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

Remove ISOLabelTmpl from all installer image kinds #542

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

thozza
Copy link
Member

@thozza thozza commented Mar 22, 2024

Do not define ISO label templates on distro / image type levels, which
are then passed to the installer image kind. Instead, allow each image
type to define its own function to generate the final ISO Label to be
used for the image type. Pass the final ISO label to the installer image
kinds to be used as is.

Fix #491

Add two new methods to the `distro.Distro` interface, specifically
`OsVersion()` and `Product()`, which are common properties of all distro
implementations.

Add a new `ISOLabel()` method to the `distro.ImageType` interface, which
will be used by installer image types to get distro-specific ISO label.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Do not define ISO label templates on distro / image type levels, which
are then passed to the installer image kind. Instead, allow each image
type to define its own function to generate the final ISO Label to be
used for the image type. Pass the final ISO label to the installer image
kinds to be used as is.

Fix osbuild#491

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
Copy link
Member

@supakeen supakeen left a comment

Choose a reason for hiding this comment

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

<3

@achilleas-k achilleas-k added this pull request to the merge queue Mar 25, 2024
Merged via the queue into osbuild:main with commit 7331c43 Mar 25, 2024
14 of 16 checks passed
mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Mar 26, 2024
mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Apr 2, 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.

Remove isolabelTmpl from RHEL.
3 participants