-
Notifications
You must be signed in to change notification settings - Fork 149
blockdev: add bootable property to find ESP partition
#1736
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
blockdev: add bootable property to find ESP partition
#1736
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.
Code Review
This pull request correctly adds support for identifying bootable partitions, which is necessary for MBR partition tables. The changes to the data structures and the new helper functions are well-implemented. I've included one suggestion to improve the new test case to make it more robust and idiomatic.
babb20d to
4a7c8fd
Compare
As Fedora IoT on the Raspberry Pi 3 is using `MBR` by default, we need to find ESP partition via `bootable`. See coreos/bootupd#1019 Signed-off-by: Huijing Hei <hhei@redhat.com>
4a7c8fd to
14f5f0a
Compare
|
Nothing wrong with adding a bootable property, but I don't think that's how we should find the ESP - per Wikipedia
So we should search for 0xEF instead. |
Agree, find |
|
So we should define a |
See bootc-dev#1736 (comment) Signed-off-by: Huijing Hei <hhei@redhat.com>
See bootc-dev#1736 (comment) Signed-off-by: Huijing Hei <hhei@redhat.com>
See bootc-dev#1736 (comment) Signed-off-by: Huijing Hei <hhei@redhat.com>
See bootc-dev#1736 (comment) Signed-off-by: Huijing Hei <hhei@redhat.com>
As Fedora IoT on the Raspberry Pi 3 is using
MBRby default, we need to find ESP partition viabootable.See coreos/bootupd#1019