Create a new GPT disk label (partition table) on drive `sda`:
clearpart "sda",
initialize => "gpt";
If GPT initialization is requested, the `bios_boot` option (default: TRUE) can also be set to TRUE or FALSE to control creation of a BIOS boot partition:
Desired size of the partition in MB. It is mandatory to pass either a C<size> or a C<grow> parameter (but not both).
=item grow
If C<TRUE>, then the partition will take up all the available space on the disk. It is mandatory to pass either a C<grow> or a C<size> parameter (but not both).
=item type
Partition type to be passed to C<parted>'s C<mkpart> command. Optional, defaults to C<primary>.
=item boot
Sets boot flag on the partition if C<TRUE>. Optional, no boot flag is set by default.
=item fstype
Create a filesystem after creating the partition. Optional, no filesystem is created by default.
=item label
Label to be used with the filesystem. Optional, defaults to no label.
=item mount
If C<TRUE>, try to mount the partition after creating it. Optional, no mount is attempted by default.
=item mount_persistent
If C<TRUE>, try to mount the partition after creating it, and also register it in C</etc/fstab>. Optional, no mount or C</etc/fstab> manipulation is attempted by default.
=item vg
Creates an LVM PV, then creates the specified LVM VG (or extends it, if the VG already exists). Needs C<ondisk>.
=back
Examples:
partition "/",
fstype => "ext3",
size => 15000,
ondisk => "sda",
type => "primary";
partition "none",
type => "extended",
ondisk => "sda",
grow => 1,
mount => TRUE,
partition "swap",
fstype => "swap",
type => "logical",
ondisk => "sda",
size => 8000;
partition "/",
fstype => "ext3",
size => 10000,
ondisk => "sda",
vg => "vg0";
=cut
subpartition {
my( $mountpoint, %option) = @_;
$option{type} ||= "primary"; # primary is default
# info:
# disk size, partition start, partition end is in MB