Repository navigation
Redeploy bug fix - #1264
Merged
Merged
Redeploy bug fix#1264
Conversation
Prior to this, get_ensure_imgstore would fail when run from a non-bootc system. Instead, in an attempt to make this function idempotent, let's fallback to the container root sepolicy instead of failing. This should only happen when running cleanup() during a to-existing install (i.e. there is not yet a bootc system). Signed-off-by: ckyrouac <[email protected]>
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
lib/src/deploy.rs:516
- Consider adding tests to verify that leftover deployment directories are correctly removed during cleanup.
// Remove leftover deployment directories created during failed installs
lib/src/install.rs:692
- Since the pre-check for the existence of a stateroot is removed in favor of a booted deployment check, ensure that the cleanup block effectively resets state to avoid conflicts with remnants of previous failed deployments.
if let Some(booted) = sysroot.booted_deployment() {
cgwalters
reviewed
Apr 10, 2025
This modifies the existing check for an extant stateroot dir to check if the pending stateroot is the same as the booted deployment. Also only run init_osname if there is not an existing stateroot dir. fixes bootc-dev#1246 Signed-off-by: ckyrouac <[email protected]>
ckyrouac
force-pushed
the
redeploy-bug-fix
branch
from
April 11, 2025 13:16
59b3937 to
dbae495
Compare
cgwalters
enabled auto-merge
April 11, 2025 13:18
cgwalters
approved these changes
Apr 11, 2025
Member
|
Not blocking for this but I think we could test this via:
|
Member
|
Here's a PR I did related to this coreos/rpm-ostree#4259 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
see commit messages. This is to fix the bug where running
install to-existing-rootcontinually fails after an initial failure due to low disk space.