diff options
| author | Karel Zak <kzak@redhat.com> | 2018-01-09 12:12:50 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2018-01-09 12:12:50 +0100 |
| commit | 6ebc37854d6e34b79ba4c326cdc5607a25997196 (patch) | |
| tree | 50b23cd82d4b2f2b0e8cdb1f05fdaf0311176f89 /libfdisk/src/script.c | |
| parent | af846e1ff9ada8d0ed03fb83067e2bc1a4d24990 (diff) | |
| download | util-linux-6ebc37854d6e34b79ba4c326cdc5607a25997196.tar.gz | |
libfdisk: (script) support R (RAID) and V (LVM) shortcuts
Addresses: https://github.com/karelzak/util-linux/issues/560
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/script.c')
| -rw-r--r-- | libfdisk/src/script.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index d7ff113859..ff377e1e8a 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -1016,6 +1016,13 @@ static struct fdisk_parttype *translate_type_shortcuts(struct fdisk_script *dp, case 'U': /* UEFI system */ type = "EF"; break; + case 'R': /* Linux RAID */ + type = "fd"; + break; + case 'V': /* LVM */ + type = "8e"; + break; + } } else if (lb->id == FDISK_DISKLABEL_GPT) { switch (*str) { @@ -1031,6 +1038,12 @@ static struct fdisk_parttype *translate_type_shortcuts(struct fdisk_script *dp, case 'U': /* UEFI system */ type = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"; break; + case 'R': /* Linux RAID */ + type = "A19D880F-05FC-4D3B-A006-743F0F84911E"; + break; + case 'V': /* LVM */ + type = "E6D6D379-F507-44C2-A23C-238F2A3DF928"; + break; } } |
