Skip to content
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

Hdimage cleanup #253

Merged
merged 5 commits into from
Jun 26, 2024
Merged

Conversation

michaelolbrich
Copy link
Member

Refactor and split hdimage_setup() to make it easier to understand.

Handle the whole thing separately and more explicitly:

 - check if an extended partition is needed first
 - insert the extended partition and mark all logical partitions

Signed-off-by: Michael Olbrich <[email protected]>
With the extended partition handling split out, there is no need to loop
twice here.

Signed-off-by: Michael Olbrich <[email protected]>
The last partition may not be the one at the end of the image, so it
could happen, that file_size is overwritten with a smaller value.

It's usually not notiable because the value is only used for the initial
image size. The file can grow larger when it is actually filled.

Signed-off-by: Michael Olbrich <[email protected]>
@michaelolbrich michaelolbrich merged commit 187b69c into pengutronix:master Jun 26, 2024
4 checks passed
@michaelolbrich michaelolbrich deleted the hdimage-cleanup branch July 4, 2024 12:34
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.

1 participant