Skip to content

Remove ISOLabelTmpl from all installer image kinds#542

Merged
achilleas-k merged 2 commits intoosbuild:mainfrom
thozza:isolabel
Mar 25, 2024
Merged

Remove ISOLabelTmpl from all installer image kinds#542
achilleas-k merged 2 commits intoosbuild:mainfrom
thozza:isolabel

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

thozza added 2 commits March 22, 2024 16:55
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
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