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

Test utility function for validating Partition Table sizes #807

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

achilleas-k
Copy link
Member

There is currently a bug that occurs when converting a partition table to LVM with a root partition size that is larger than the original partition size (or larger than the partition table). @croissanne discovered it and we investigated it together yesterday. We both have ideas for how to fix it properly, but first I decided to write some tests to catch similar issues.

To keep things easier to follow and review, I decided to first introduce a utility function for validating partition table sizes. Currently this is a test utility function. If we discover that we need it outside of testing, we can move it to the partition_table.go file.

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐛

@croissanne croissanne added this pull request to the merge queue Jul 24, 2024
Merged via the queue into osbuild:main with commit 0fff0ac Jul 24, 2024
18 checks passed
@achilleas-k achilleas-k deleted the test/validate-pt-sizes branch July 24, 2024 15:39
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.

3 participants