diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -632,6 +632,13 @@
sbuf_printf(sb, "%s", indent);
g_conf_cat_escaped(sb, res == 0 ? buf : dp->d_ident);
sbuf_cat(sb, "\n");
+ bp->bio_attribute = "GEOM::attachment";
+ bp->bio_length = DISK_IDENT_SIZE;
+ bp->bio_data = buf;
+ res = dp->d_getattr(bp);
+ sbuf_printf(sb, "%s", indent);
+ g_conf_cat_escaped(sb, res == 0 ? buf : dp->d_attachment);
+ sbuf_cat(sb, "\n");
bp->bio_attribute = "GEOM::lunid";
bp->bio_length = DISK_IDENT_SIZE;
bp->bio_data = buf;
@@ -654,6 +661,9 @@
sbuf_printf(sb, "%s", indent);
g_conf_cat_escaped(sb, dp->d_ident);
sbuf_cat(sb, "\n");
+ sbuf_printf(sb, "%s", indent);
+ g_conf_cat_escaped(sb, dp->d_attachment);
+ sbuf_cat(sb, "\n");
}
sbuf_printf(sb, "%s", indent);
g_conf_cat_escaped(sb, dp->d_descr);