I want to create a LVM partition using the parted command. So far I did:
# set up the partition table
parted /dev/sda mklabel msdos
#/dev/sda1 (boot) :
parted /dev/sda mkpart primary ext2 1MiB 513MiB
#/dev/sda2 (LVM) :
parted /dev/sda mkpart extended 513MiB 100%
# set up partitions' flags
parted /dev/sda set 1 boot on
parted /dev/sda set 2 lvm on
But I get a "W95 Ext'd (LBA)" partition (type f), see fdisk -l output. I would like a "Linux LVM" partition (type 8e).
How can I force the partition ID using the parted command? .