blockdev: add bootable property to find ESP partition#1736
blockdev: add bootable property to find ESP partition#1736cgwalters merged 1 commit intobootc-dev:mainfrom
bootable property to find ESP partition#1736Conversation
There was a problem hiding this comment.
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>
See bootc-dev#1736 (comment) Signed-off-by: Huijing Hei <hhei@redhat.com>
See #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