diff options
author | marcel <marcel@FreeBSD.org> | 2010-01-30 23:13:19 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2010-01-30 23:13:19 +0000 |
commit | 68c0faaca6c6be70bf107bd698487ce090374471 (patch) | |
tree | 013257a5a473790d4e7b7ee11dd0c8d21bf68bdd /sys/geom/part/g_part_gpt.c | |
parent | b08756e9edddf7e709737ff0665e8a77e125166a (diff) | |
download | FreeBSD-src-68c0faaca6c6be70bf107bd698487ce090374471.zip FreeBSD-src-68c0faaca6c6be70bf107bd698487ce090374471.tar.gz |
Export the UUID of the partition in the XML. The partition UUID is used
by EFI's device path to identify a partition. In order for FreeBSD to
add EFI boot options, proper device paths need to be constructed.
Diffstat (limited to 'sys/geom/part/g_part_gpt.c')
-rw-r--r-- | sys/geom/part/g_part_gpt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/geom/part/g_part_gpt.c b/sys/geom/part/g_part_gpt.c index 7489e68..b0c9598 100644 --- a/sys/geom/part/g_part_gpt.c +++ b/sys/geom/part/g_part_gpt.c @@ -513,6 +513,9 @@ g_part_gpt_dumpconf(struct g_part_table *table, struct g_part_entry *baseentry, sbuf_printf(sb, "%s<rawtype>", indent); sbuf_printf_uuid(sb, &entry->ent.ent_type); sbuf_printf(sb, "</rawtype>\n"); + sbuf_printf(sb, "%s<rawuuid>", indent); + sbuf_printf_uuid(sb, &entry->ent.ent_uuid); + sbuf_printf(sb, "</rawuuid>\n"); } else { /* confxml: scheme information */ } |