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 <kzak@redhat.com>
This commit is contained in:
parent
45c2daa612
commit
8d720dbed6
|
@ -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,
|
struct fdisk_parttype *t = fdisk_label_advparse_parttype(lb, buf,
|
||||||
FDISK_PARTTYPE_PARSE_DATA
|
FDISK_PARTTYPE_PARSE_DATA
|
||||||
| FDISK_PARTTYPE_PARSE_ALIAS
|
| FDISK_PARTTYPE_PARSE_ALIAS
|
||||||
|
| FDISK_PARTTYPE_PARSE_NAME
|
||||||
| FDISK_PARTTYPE_PARSE_SEQNUM);
|
| FDISK_PARTTYPE_PARSE_SEQNUM);
|
||||||
if (!t)
|
if (!t)
|
||||||
fdisk_info(cxt, _("Failed to parse '%s' partition type."), buf);
|
fdisk_info(cxt, _("Failed to parse '%s' partition type."), buf);
|
||||||
|
|
Loading…
Reference in New Issue