]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: (sgi) don't try to convert MBR to SGI
authorKarel Zak <kzak@redhat.com>
Fri, 17 May 2013 13:27:39 +0000 (15:27 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Sep 2013 14:46:55 +0000 (16:46 +0200)
.. because there don't have to be old MBR at all.

Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/fdisksgilabel.c

index 15a25c503f5be9861ffc459e4767f491315b71aa..6f126639092132361204a68913555823779a591f 100644 (file)
@@ -823,7 +823,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
        /*
         * Convert old MBR to SGI label, make it DEPRECATED, this feature
         * has to be handled in by any top-level fdisk command.
-        */
+        *
        for (i = 0; i < 4; i++) {
                old[i].sysid = 0;
                if (mbr_is_valid_magic(cxt->firstsector)) {
@@ -843,6 +843,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
                        printf(_("Trying to keep parameters of partitions already set.\n"));
                        break;
                }
+       */
 
        fdisk_zeroize_firstsector(cxt);
        sgilabel->magic = SSWAP32(SGI_LABEL_MAGIC);