Skip to content

Conversation

omertuc
Copy link
Contributor

@omertuc omertuc commented Jun 21, 2024

This commit makes it so that the bootc install stateroot will be configurable (it defaults to default). For now this is a hidden CLI option until we decide whether we want to commit to this API.

In the future we also want to make the stateroot of bootc switch be configurable (#617) so that users can install an image to a new stateroot while they already have an existing stateroot

Also removed the constant STATEROOT_DEFAULT, we're now simply taking it from the ostree_ext crate

@github-actions github-actions bot added the area/install Issues related to `bootc install` label Jun 21, 2024
@cgwalters
Copy link
Collaborator

For tests, try adding a new case to https://github.com/containers/bootc/blob/b5f47ff8fe5121f7eade46aa53048edd75fd6116/tests-integration/src/install.rs#L68

@omertuc omertuc force-pushed the installstateroot branch 3 times, most recently from 8e9e129 to c093213 Compare June 25, 2024 10:14
@omertuc omertuc force-pushed the installstateroot branch from c093213 to 9f34577 Compare July 3, 2024 12:05
Copy link
Collaborator

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Looks sane to me, could just use a test in tests-integration/src/install.rs or so.

@omertuc
Copy link
Contributor Author

omertuc commented Sep 2, 2024

Looks sane to me, could just use a test in tests-integration/src/install.rs or so.

Coming back to this, is this still the right place? Or should it be part of the e2e tmt stuff?

@omertuc omertuc force-pushed the installstateroot branch 3 times, most recently from 89cf7ff to 3b92943 Compare September 3, 2024 15:29
@omertuc omertuc marked this pull request as ready for review September 3, 2024 15:29
@omertuc omertuc force-pushed the installstateroot branch 2 times, most recently from 4bdd3c7 to 6edca4e Compare September 3, 2024 15:31
@cgwalters
Copy link
Collaborator

Coming back to this, is this still the right place? Or should it be part of the e2e tmt stuff?

the e2e-tmt flow is generally oriented around bootc as a client flow, which is currently pretty distinct from the install path. I think it's still the right place to test install code in that file.

This commit makes it so that the `bootc install` stateroot will be
configurable (it defaults to `default`). For now this is a hidden CLI
option until we decide whether we want to commit to this API.

In the future we also want to make the stateroot of `bootc switch` be
configurable (bootc-dev#617) so that
users can install an image to a new stateroot while they already have an
existing stateroot

Also removed the constant `STATEROOT_DEFAULT`, we're now simply taking
it from the `ostree_ext` crate

Signed-off-by: Omer Tuchfeld <[email protected]>
@cgwalters cgwalters merged commit c53ca55 into bootc-dev:main Sep 9, 2024
30 of 34 checks passed
cgwalters pushed a commit to cgwalters/bootc that referenced this pull request Nov 5, 2024
….0.197

build(deps): bump serde from 1.0.196 to 1.0.197
cgwalters added a commit to cgwalters/bootc that referenced this pull request Nov 6, 2024
container: Drop async_compression + support zstd:chunked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Issues related to `bootc install`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants