I need to write a program to format SD card with, FAT boot, ext4 and swap partitions. I would like the ext4 to use LVM. Ideally there would be scope for mdadm.
I need help finding a command line utity which is capable of all this. I will be able to control any command from within my program. Would rather not cut & paste source.
I understand that Gparted does not cope well with LVM.
Any suggestions for a better command?