summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/script.c
diff options
context:
space:
mode:
authorKarel Zak2016-02-08 16:34:14 +0100
committerKarel Zak2016-02-08 16:37:03 +0100
commit300e24a8eaf4658961ee725505ef56f48dec2ec4 (patch)
tree276316decbbc647205b5f2373bffd15a9877d01d /libfdisk/src/script.c
parentMerge branch 'master' of https://github.com/rudimeier/util-linux (diff)
downloadkernel-qcow2-util-linux-300e24a8eaf4658961ee725505ef56f48dec2ec4.tar.gz
kernel-qcow2-util-linux-300e24a8eaf4658961ee725505ef56f48dec2ec4.tar.xz
kernel-qcow2-util-linux-300e24a8eaf4658961ee725505ef56f48dec2ec4.zip
sfdisk: add ESP shortcut also for Legacy MBR
References: https://github.com/karelzak/util-linux/issues/267 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/script.c')
-rw-r--r--libfdisk/src/script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c
index 79e2add04..2637635ab 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) {