]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fdisk: support partition type name in dialogs
authorKarel Zak <kzak@redhat.com>
Tue, 23 Feb 2021 08:25:57 +0000 (09:25 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 23 Feb 2021 08:25:57 +0000 (09:25 +0100)
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 <kzak@redhat.com>
disk-utils/fdisk.c

index f802d44c460112651cffc5b6325d871557111009..c6d78922a6371bbc4a632e4f9f9e4fd60786e889 100644 (file)
@@ -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);