From 8d720dbed6b8c2c1f899b9123f76404b51ba4459 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 23 Feb 2021 09:25:57 +0100 Subject: [PATCH] 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 --- disk-utils/fdisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index f802d44c4..c6d78922a 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);