Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163310615
D43774.id133949.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
684 B
Referenced Files
None
Subscribers
None
D43774.id133949.diff
View Options
diff --git a/usr.bin/mkimg/gpt.c b/usr.bin/mkimg/gpt.c
--- a/usr.bin/mkimg/gpt.c
+++ b/usr.bin/mkimg/gpt.c
@@ -208,6 +208,9 @@
idx++;
}
}
+ if (part->index + 1 == active_partition) {
+ le64enc(&ent->ent_attr, GPT_ENT_ATTR_BOOTME);
+ }
}
return (tbl);
}
diff --git a/usr.bin/mkimg/mkimg.1 b/usr.bin/mkimg/mkimg.1
--- a/usr.bin/mkimg/mkimg.1
+++ b/usr.bin/mkimg/mkimg.1
@@ -157,8 +157,9 @@
option marks a partition as active, if the partitioning
scheme supports it.
Currently, only the
-.Ar mbr
-scheme supports this concept.
+.Ar mbr and
+.Ar gpt
+schemes support this concept.
By default,
.Nm
will only mark the first partition as active when boot code is
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 11:27 PM (8 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35385394
Default Alt Text
D43774.id133949.diff (684 B)
Attached To
Mode
D43774: Set bootme GPT flag to mark "active" partition on a GPT-labelled image
Attached
Detach File
Event Timeline
Log In to Comment