From: Karel Zak Date: Tue, 23 Feb 2021 08:25:57 +0000 (+0100) Subject: fdisk: support partition type name in dialogs X-Git-Tag: v2.37-rc1~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d720dbed6b8c2c1f899b9123f76404b51ba4459;p=thirdparty%2Futil-linux.git fdisk: support partition type name in dialogs Command (m for help): t Selected partition 1 Partition type or alias (type L to list all): linux root x86 Changed type of partition 'Linux /usr (x86)' to 'Linux root (x86)'. Signed-off-by: Karel Zak --- diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index f802d44c46..c6d78922a6 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -505,6 +505,7 @@ static struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt, int struct fdisk_parttype *t = fdisk_label_advparse_parttype(lb, buf, FDISK_PARTTYPE_PARSE_DATA | FDISK_PARTTYPE_PARSE_ALIAS + | FDISK_PARTTYPE_PARSE_NAME | FDISK_PARTTYPE_PARSE_SEQNUM); if (!t) fdisk_info(cxt, _("Failed to parse '%s' partition type."), buf);