Page MenuHomeFreeBSD

D43774.id133949.diff
No OneTemporary

D43774.id133949.diff

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

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)

Event Timeline