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

install: Make stateroot configurable #622

Merged
merged 1 commit into from
Sep 9, 2024

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
lib/src/install.rs Outdated Show resolved Hide resolved
@cgwalters
Copy link
Collaborator

For tests, try adding a new case to

@omertuc omertuc force-pushed the installstateroot branch 3 times, most recently from 8e9e129 to c093213 Compare June 25, 2024 10:14
lib/src/install.rs Outdated Show resolved Hide resolved
@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.

lib/src/install.rs Outdated Show resolved Hide resolved
@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 (containers#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]>
lib/src/install.rs Show resolved Hide resolved
@cgwalters cgwalters merged commit c53ca55 into containers:main Sep 9, 2024
30 of 34 checks passed
cgwalters pushed a commit to cgwalters/bootc that referenced this pull request Nov 5, 2024
…1.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