| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
We would have unmergable paths if a modified file was changed to a directory in the new etc or vice-versa. One of the major issues was that we were erroring out during "merge" which is not ideal. A new vector now keeps track of all unmergable paths and the reason they're not mergable. Ref: composefs/composefs-rs/issues/335 Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Currently we have a hard error whenever we find a merge conflict in etc. Introduce MergeStrategy enum with Fail, Skip and Replace variants which fail, skip copying and replace file/directory in the new etc respectively upon encountering a merge conflict. The deafult, while finalizing, is to still fail; next step would be making this configurable Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
Before we write the staged deployment file at `/run/composefs` we now compute the etc diff in advance to check whethere we will face any merge conflicts while finalizing the deployment. We accept the merge strategy either from the Cli or from config file at `/usr/lib/bootc/finalize.toml`. If we find conflicts and merge strategy is to Fail, we fail early on upgrade/switch and not while finalizing the deployment. Write the merge strategy to the staged file to use during finalization Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
The test was largely AI generated Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
There was a problem hiding this comment.
Marking as requested changes per discussion in the issue
Sorry, something went wrong.
|
Opened #2301 splitting out "Compute etc diff before staging" commit |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
See #2285 for the implementation details
Closes: #2285