Page MenuHomeFreeBSD

Set bootme GPT flag to mark "active" partition on a GPT-labelled image
Needs RevisionPublic

Authored by sobomax on Feb 7 2024, 12:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 6:44 AM
Unknown Object (File)
Thu, Apr 25, 11:57 PM
Unknown Object (File)
Thu, Apr 25, 11:56 PM
Unknown Object (File)
Thu, Apr 25, 2:21 PM
Unknown Object (File)
Feb 9 2024, 9:19 AM
Unknown Object (File)
Feb 9 2024, 12:35 AM
Unknown Object (File)
Feb 9 2024, 12:28 AM
Subscribers
None

Details

Reviewers
imp
marius
marcel
Summary

mkimg(1) is a fantastic tool to build all sorts of partitioned disk images, however it lacks the ability to mark GPT boot partition "active".

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sobomax created this revision.
This revision is now accepted and ready to land.Feb 7 2024, 2:49 AM
marius requested changes to this revision.Feb 7 2024, 10:43 PM
marius added inline comments.
usr.bin/mkimg/mkimg.1
163

It would be nice to have this list sorted alphabetically. Apart from that, this change looks good to me. Don't forget to bump .Dd when commtting, though.

This revision now requires changes to proceed.Feb 7 2024, 10:43 PM

o sorted alphabetically;
o updated .Dd.

marius requested changes to this revision.Feb 8 2024, 12:48 AM
marius added inline comments.
usr.bin/mkimg/mkimg.1
160

Uhm, the "and" should go onto a separate line so it's not an argument to the .Ar macro and not rendered specially as expected.

This revision now requires changes to proceed.Feb 8 2024, 12:48 AM
usr.bin/mkimg/gpt.c
211

One final nit... For GPT this is FreeBSD specific. The GPT standard just sets these bits aside for the OS to do what it wants... Linux, windows and MacOS all ignore it.
A small comment to this effect would be good.