Skip to content

Conversation

@Johan-Liebert1
Copy link
Collaborator

If a directory is modified/added in the current etc, but deleted in the new etc, we'd want it in the new etc. This case prior to this commit resulted in a panic as we were not taking it into account

Fixes: #1924

@bootc-bot bootc-bot bot requested a review from jeckersb January 19, 2026 09:10
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes a panic that occurred when a directory modified in the current /etc was deleted in the new /etc. The changes correctly handle this case by adding the directory back to the diff. The function signatures for compute_diff and get_modifications have been updated to include the new /etc state, and call sites have been adjusted accordingly. I've found one area for improvement regarding how modified directories are added to the diff, which could lead to redundant processing. My feedback includes a suggestion to address this.

@Johan-Liebert1 Johan-Liebert1 force-pushed the etc-merge-bugfix branch 2 times, most recently from a514755 to b20aa5b Compare January 19, 2026 09:15
If a directory is modified/added in the current etc, but deleted in the
new etc, we'd want it in the new etc. This case prior to this commit
resulted in a panic as we were not taking it into account

Fixes: bootc-dev#1924

Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
@cgwalters cgwalters enabled auto-merge (rebase) January 19, 2026 13:18
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.

composefs backend: bootc-finalize-staged fails when incoming upgrade deletes a folder from /etc

2 participants