-
Notifications
You must be signed in to change notification settings - Fork 15
fix: honor values when reading GPT partition table #135
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
Conversation
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 wonder if we can test this 🤔
that's where I stopped yesterday - I will do tests and take it out of draft |
Keep using values from the GPT header on read flow (vs. the new partition flow), and trust whatever it says. Fixes siderolabs#134 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
I added unit-tests - they both fail with |
/m |
Import the fix from siderolabs/go-blockdevice#135 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
Import the fix from siderolabs/go-blockdevice#135 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit d62e255)
Import the fix from siderolabs/go-blockdevice#135 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com> (cherry picked from commit d62e255)
Keep using values from the GPT header on read flow (vs. the new partition flow), and trust whatever it says.
Fixes #134