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

Update osbuild/images to v0.105.0 (COMPOSER-2357, COMPOSER-2400) #4519

Merged
merged 3 commits into from
Dec 9, 2024

Conversation

thozza
Copy link
Member

@thozza thozza commented Dec 6, 2024

This brings a lot of new stuff, among others:

  • Internal image types for RHEL-10 (COMPOSER-2357)
  • Support for Swap partitions in DiskCustomizations (COMPOSER-2400)
  • Support for new partitioning customizations for CS and RHEL
  • Fix for RHEL 8 and 9 AMI boot mode (RHEL-69628)

This pull request includes:

  • adequate testing for the new functionality or fixed issue
  • adequate documentation informing people about the change such as
    • submit a PR for the READMEs listed here
    • submit a PR for the osbuild.org website repository if this PR changed any behavior not covered by the automatically updated READMEs

@thozza thozza changed the title Update osbuild/images to v0.104.0 (COMPOSER-2357, COMPOSER-2400) Update osbuild/images to v0.104.0 (COMPOSER-2357) (COMPOSER-2400) Dec 6, 2024
@thozza thozza changed the title Update osbuild/images to v0.104.0 (COMPOSER-2357) (COMPOSER-2400) Update osbuild/images to v0.104.0 (COMPOSER-2357, COMPOSER-2400) Dec 6, 2024
This brings a lot of new stuff, among others:
 - Internal image types for RHEL-10 (COMPOSER-2357)
 - Support for Swap partitions in DiskCustomizations (COMPOSER-2400)
 - Support for new partitioning customizations for CS and RHEL
 - Fix for RHEL 8 and 9 AMI boot mode (RHEL-69628)

Signed-off-by: Tomáš Hozza <[email protected]>
@thozza thozza changed the title Update osbuild/images to v0.104.0 (COMPOSER-2357, COMPOSER-2400) Update osbuild/images to v0.105.0 (COMPOSER-2357, COMPOSER-2400) Dec 7, 2024
@thozza
Copy link
Member Author

thozza commented Dec 7, 2024

I've updated the PR to use the latest osbuild/images release v0.105.0 and also modified Weldr API and one test to not set OSTree options for non-OSTree image types.

Previously, the `OSTree` property in the Weldr API `ComposeRequest`
struct was not a pointer to the `ostree.ImageOptions` type. As a result,
it was initialized to an empty struct, even if not set in the client API
call.

As a result, the `OSTree` property in the `distro.ImageOptions` was
always not `nil`, when initializing the osbuild manifest. However, after
a change in `osbuild/images` [0], providing OSTree options for
non-OSTree image types is no longer considered valid. This caused a
failure to submit a new compose for any non-OSTree image type.

Change the `OSTree` property in Weldr `ComposeRequest` to be a pointer
and mark it as optional.

[0] osbuild/images#1071

Signed-off-by: Tomáš Hozza <[email protected]>
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.

Awesome, thanks! 😍

@ondrejbudai ondrejbudai merged commit 580366d into osbuild:main Dec 9, 2024
43 of 46 checks passed
@thozza thozza deleted the images-v104 branch December 9, 2024 09:02
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