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

Fix optimize with parted #104

Merged
merged 1 commit into from
May 5, 2024
Merged

Fix optimize with parted #104

merged 1 commit into from
May 5, 2024

Conversation

pguyot
Copy link
Owner

@pguyot pguyot commented May 4, 2024

No description provided.

@pguyot pguyot force-pushed the w18/fix-optimize-parted branch 12 times, most recently from 2e9c71a to 716db9b Compare May 5, 2024 04:38
Fix a miscalculaton of end of partition parameter for parted. It shall be the
last byte of the partition, not start byte + size. This made parted fail when
the partition wasn't shrunk by resize2fs.

Avoid calling parted if the partition isn't shrunk by resize2fs.

Fix a bug where `cleanup_image.sh` script was not aborting in case of errors,
thus not revealing a corruption of generated image as reported in #87.

Fix a bug where cleanup_image.sh failed using images with more than 10
partitions because of a lazy glob.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
@pguyot pguyot merged commit 543dbd3 into main May 5, 2024
87 checks passed
@pguyot pguyot deleted the w18/fix-optimize-parted branch May 5, 2024 04:55
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.

None yet

1 participant