-
Notifications
You must be signed in to change notification settings - Fork 3
feat: support user partition preservation #31
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
base: main
Are you sure you want to change the base?
Conversation
|
Could you please fix conflicts and provide a test build? |
Xayton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested it, and user's data was preserved correctly.
| return nil | ||
| } | ||
|
|
||
| func checkBoardGPTTable(ctx context.Context, qdlPath, flashDir *paths.Path) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of a method returning it's output (or string message) just by returning an error. But this can be fine.
At least, add a small comment to the function, explaining why we are checking the GPT and why this is the way we use to know if the board supports preserving user's data or not.
| func checkBoardGPTTable(ctx context.Context, qdlPath, flashDir *paths.Path) error { | |
| // Checks the board GPT table and counts the number of partitions, this tells if the board supports preserving or not user's data. | |
| func checkBoardGPTTable(ctx context.Context, qdlPath, flashDir *paths.Path) error { |
Motivation
Add a flag to the
flashcommand to allow the user to preserve thehomepartitionChange description
Add a flag to the
flashcommand to allow the user to preserve thehomepartition. The flasher will check if both the image currently on the board and the one to be flasher support user partition preservation (so they are not a R0 image).Additional Notes
Reviewer checklist
main.