Skip to content

install: Make stateroot configurable#622

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
omertuc:installstateroot
Sep 9, 2024
Merged

install: Make stateroot configurable#622
cgwalters merged 1 commit intobootc-dev:mainfrom
omertuc:installstateroot

Conversation

@omertuc
Copy link
Copy Markdown
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
Comment thread lib/src/install.rs Outdated
@cgwalters
Copy link
Copy Markdown
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
Comment thread lib/src/install.rs Outdated
@omertuc omertuc force-pushed the installstateroot branch from c093213 to 9f34577 Compare July 3, 2024 12:05
Copy link
Copy Markdown
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.

Comment thread lib/src/install.rs
@omertuc
Copy link
Copy Markdown
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
Comment thread tests-integration/src/install.rs Outdated
Comment thread lib/src/install.rs
@cgwalters
Copy link
Copy Markdown
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 <omer@tuchfeld.dev>
Comment thread lib/src/install.rs
@cgwalters cgwalters merged commit c53ca55 into bootc-dev:main Sep 9, 2024
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