Skip to content

stages: add support for --target-imgref to bootc install to-filesystem#1740

Merged
mvo5 merged 1 commit intoosbuild:mainfrom
mvo5:add-bootc-target-imgref
Apr 17, 2024
Merged

stages: add support for --target-imgref to bootc install to-filesystem#1740
mvo5 merged 1 commit intoosbuild:mainfrom
mvo5:add-bootc-target-imgref

Conversation

@mvo5
Copy link
Contributor

@mvo5 mvo5 commented Apr 16, 2024

We currently do not set the --target-imgref and do not allow to override it. This means that on a fresh deploy it is set to an incorrect value. This commit allows to set it via the org.osbuild.bootc.install-to-filesystem stage.

We may need to make this as strict as in https://github.com/osbuild/osbuild/blob/main/stages/org.osbuild.ostree.deploy.container.meta.json#L37 ?

@mvo5 mvo5 requested a review from ondrejbudai April 16, 2024 16:59
We currently do not set the `--target-imgref` and do not allow to
override it. This means that on a fresh deploy it is set to an
incorrect value. This commit allows to set it via the
org.osbuild.bootc.install-to-filesystem stage.
@mvo5 mvo5 force-pushed the add-bootc-target-imgref branch from d2936bb to 22ee658 Compare April 16, 2024 17:01
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.

Looks good to me! :)

@ondrejbudai
Copy link
Member

We may need to make this as strict as in https://github.com/osbuild/osbuild/blob/main/stages/org.osbuild.ostree.deploy.container.meta.json#L37 ?

Missed this one... I think that's a sane idea, go for it! :)

@mvo5
Copy link
Contributor Author

mvo5 commented Apr 17, 2024

We may need to make this as strict as in https://github.com/osbuild/osbuild/blob/main/stages/org.osbuild.ostree.deploy.container.meta.json#L37 ?

Missed this one... I think that's a sane idea, go for it! :)

It is, it's stricter with the inputs but AFAICT bootc is happy with just the image ref as is done here but I'm still not trusting my ostree knowledge to be fully confident.

@mvo5 mvo5 marked this pull request as ready for review April 17, 2024 08:37
@mvo5 mvo5 requested a review from achilleas-k April 17, 2024 08:37
@achilleas-k
Copy link
Member

It doesn't look like bootc has the same requirements for the ref so let's not restrict it more than is necessary.

mvo5 added a commit to mvo5/images that referenced this pull request Apr 17, 2024
@mvo5 mvo5 enabled auto-merge (rebase) April 17, 2024 12:14
@mvo5 mvo5 merged commit 388e367 into osbuild:main Apr 17, 2024
github-merge-queue bot pushed a commit to osbuild/images that referenced this pull request Apr 17, 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.

3 participants