diff --git a/sys/conf/files b/sys/conf/files index 7af607999a46..f30eb7e8688e 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -2684,14 +2684,14 @@ geom/geom_vfs.c standard geom/geom_vol_ffs.c optional geom_vol geom/journal/g_journal.c optional geom_journal geom/journal/g_journal_ufs.c optional geom_journal -geom/label/g_label.c optional geom_label +geom/label/g_label.c optional geom_label | geom_label_gpt geom/label/g_label_ext2fs.c optional geom_label geom/label/g_label_iso9660.c optional geom_label geom/label/g_label_msdosfs.c optional geom_label geom/label/g_label_ntfs.c optional geom_label geom/label/g_label_reiserfs.c optional geom_label geom/label/g_label_ufs.c optional geom_label -geom/label/g_label_gpt.c optional geom_label +geom/label/g_label_gpt.c optional geom_label | geom_label_gpt geom/label/g_label_disk_ident.c optional geom_label geom/linux_lvm/g_linux_lvm.c optional geom_linux_lvm geom/mirror/g_mirror.c optional geom_mirror diff --git a/sys/conf/options b/sys/conf/options index c91929b5e0bc..99596525cd88 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -102,6 +102,7 @@ GEOM_FOX opt_geom.h GEOM_GATE opt_geom.h GEOM_JOURNAL opt_geom.h GEOM_LABEL opt_geom.h +GEOM_LABEL_GPT opt_geom.h GEOM_LINUX_LVM opt_geom.h GEOM_MBR opt_geom.h GEOM_MIRROR opt_geom.h diff --git a/sys/geom/label/g_label.c b/sys/geom/label/g_label.c index fc16f7fb4f6f..ce1376e269ca 100644 --- a/sys/geom/label/g_label.c +++ b/sys/geom/label/g_label.c @@ -27,6 +27,8 @@ #include __FBSDID("$FreeBSD$"); +#include "opt_geom.h" + #include #include #include @@ -80,6 +82,9 @@ struct g_class g_label_class = { * 6. Add your file system to manual page sbin/geom/class/label/glabel.8. */ const struct g_label_desc *g_labels[] = { + &g_label_gpt, + &g_label_gpt_uuid, +#ifdef GEOM_LABEL &g_label_ufs_id, &g_label_ufs_volume, &g_label_iso9660, @@ -87,9 +92,8 @@ const struct g_label_desc *g_labels[] = { &g_label_ext2fs, &g_label_reiserfs, &g_label_ntfs, - &g_label_gpt, - &g_label_gpt_uuid, &g_label_disk_ident, +#endif NULL }; diff --git a/sys/modules/geom/geom_label/Makefile b/sys/modules/geom/geom_label/Makefile index 32af6d71dc85..b06e1089c803 100644 --- a/sys/modules/geom/geom_label/Makefile +++ b/sys/modules/geom/geom_label/Makefile @@ -12,5 +12,9 @@ SRCS+= g_label_msdosfs.c SRCS+= g_label_ntfs.c SRCS+= g_label_reiserfs.c SRCS+= g_label_ufs.c +SRCS+= opt_geom.h + +opt_geom.h: + echo "#define GEOM_LABEL 1" > ${.TARGET} .include