]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: add ESP shortcut also for Legacy MBR
authorKarel Zak <kzak@redhat.com>
Mon, 8 Feb 2016 15:34:14 +0000 (16:34 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Feb 2016 15:37:03 +0000 (16:37 +0100)
References: https://github.com/karelzak/util-linux/issues/267
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8
libfdisk/src/script.c

index 4aa0b6208b4c32f0e4fc94def90402fe6f1f73d0..31b43c2c913b93b9e82f68d7a28a37fe66d5c0d9 100644 (file)
@@ -303,7 +303,7 @@ home partition; means 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 for GPT
 linux extended partition; means 85 for MBR.
 .TP
 .B U
-EFI System partition, means C12A7328-F81F-11D2-BA4B-00A0C93EC93B for GPT
+EFI System partition, means EF for MBR and C12A7328-F81F-11D2-BA4B-00A0C93EC93B for GPT
 .RE
 .PP
 The default
index 79e2add04e2682d1370587a0f39123ccace917bc..2637635abdaf3e13bb584ea84468d4c566cf2a67 100644 (file)
@@ -960,6 +960,8 @@ static struct fdisk_parttype *translate_type_shortcuts(struct fdisk_script *dp,
                case 'X':       /* Linux extended */
                        type = "85";
                        break;
+               case 'U':       /* UEFI system */
+                       type = "EF";
                }
        } else if (lb->id == FDISK_DISKLABEL_GPT) {
                switch (*str) {