Skip to content

Conversation

@Johan-Liebert1
Copy link
Collaborator

@Johan-Liebert1 Johan-Liebert1 commented Aug 28, 2025

Add error contexts to functions. Create wrappers around intrenal functions with error context added.
Also make /etc a bind mount

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 significantly improves error handling by introducing fn-error-context and applying it throughout the mount logic. The use of #[context] attributes and context-aware wrappers makes error messages much more informative and easier to trace. This is a great enhancement for debuggability. I have one major point of feedback regarding a logic change that seems unrelated to error handling and should be clarified.

Add error contexts to functions. Create wrappers around intrenal
functions with error context added

Signed-off-by: Johan-Liebert1 <[email protected]>
This is prep work for eventual integration with composefs-native backend

Signed-off-by: Johan-Liebert1 <[email protected]>
@Johan-Liebert1 Johan-Liebert1 force-pushed the composefs-initramfs-error-handling branch from a66ca6b to 5cbc0be Compare August 28, 2025 12:25
@Johan-Liebert1
Copy link
Collaborator Author

Moved the change to a separate commit

@Johan-Liebert1 Johan-Liebert1 merged commit 7434b0f into bootc-dev:main Aug 29, 2025
27 checks passed
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.

2 participants