]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (bsd) add note about non-written parental MBR
authorKarel Zak <kzak@redhat.com>
Mon, 31 Aug 2015 11:24:33 +0000 (13:24 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 31 Aug 2015 11:24:33 +0000 (13:24 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/bsd.c

index 9d4135d60625286641c63bd77f2a53806009b44f..24272bc3a8c70917e6ce013ff869ec324c40a1a1 100644 (file)
@@ -896,7 +896,11 @@ static int bsd_write_disklabel(struct fdisk_context *cxt)
        }
        sync_disks(cxt);
 
-       fdisk_info(cxt, _("Disklabel written to %s."), cxt->dev_path);
+       if (cxt->parent && fdisk_label_is_changed(cxt->parent->label))
+               fdisk_info(cxt, _("Disklabel written to %s (don't forget to write %s disklable too)."),
+                               cxt->dev_path, cxt->parent->dev_path);
+       else
+               fdisk_info(cxt, _("Disklabel written to %s."), cxt->dev_path);
        return 0;
 }