From: Karel Zak Date: Mon, 8 Feb 2016 15:34:14 +0000 (+0100) Subject: sfdisk: add ESP shortcut also for Legacy MBR X-Git-Tag: v2.28-rc1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=300e24a8eaf4658961ee725505ef56f48dec2ec4;p=thirdparty%2Futil-linux.git sfdisk: add ESP shortcut also for Legacy MBR References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak --- diff --git a/disk-utils/sfdisk.8 b/disk-utils/sfdisk.8 index 4aa0b6208b..31b43c2c91 100644 --- a/disk-utils/sfdisk.8 +++ b/disk-utils/sfdisk.8 @@ -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 diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index 79e2add04e..2637635abd 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -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) {