#593691 parted: set needed to create lvm partition on msdos disk label

Package:
parted
Source:
parted
Description:
disk partition manipulator
Submitter:
Marc Haber
Date:
2010-08-20 11:42:05 UTC
Severity:
wishlist
#593691#5
Date:
2010-08-20 11:38:44 UTC
From:
To:
To create a swap partition, I can do something like

parted --script -- /dev/sda unit s mkpart primary linux-swap 2050048 6146047

but to create an LVM partition, the analogous

parted --script -- /dev/sda unit s mkpart primary lvm 6146048 -1

doesn't work. I need to create the partition as ext2 and then to
manually change the partition type by

parted --script /dev/sda set 3 lvm on

This is absolutely counter-intuitive.

Greetings
Marc