summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r--fdisks/fdiskdoslabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
index 4b0a5cb4b..361d59901 100644
--- a/fdisks/fdiskdoslabel.c
+++ b/fdisks/fdiskdoslabel.c
@@ -1561,8 +1561,8 @@ struct fdisk_label *fdisk_new_dos_label(struct fdisk_context *cxt)
lb->parttypes = dos_parttypes;
lb->nparttypes = ARRAY_SIZE(dos_parttypes);
- /* don't ask for partition number for op->part_add() */
- lb->flags = FDISK_LABEL_FL_ADDPART_NOPARTNO;
+ lb->flags |= FDISK_LABEL_FL_ADDPART_NOPARTNO;
+ lb->flags |= FDISK_LABEL_FL_REQUIRE_GEOMETRY;
return lb;
}