From: Davidlohr Bueso <dave@xxxxxxx> It wasn't actually calling create_label(), silly me! Signed-off-by: Davidlohr Bueso <dave@xxxxxxx> --- fdisks/utils.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fdisks/utils.c b/fdisks/utils.c index 62cd6aa..510d641 100644 --- a/fdisks/utils.c +++ b/fdisks/utils.c @@ -143,11 +143,13 @@ int fdisk_label_create(struct fdisk_context *cxt, const char *name) #else errcode = fdisk_label_change(cxt, "dos"); #endif - if (errcode) - goto done; - } - - errcode = fdisk_label_change(cxt, name); + } else + errcode = fdisk_label_change(cxt, name); + + if (errcode) + goto done; + + errcode = cxt->label->create_label(cxt); done: return errcode; } -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html