This command creates a partition on the system and uses the following syntax:
part <mntpoint>
The <mntpoint>
is where the
partition will be mounted and must be of one of the
following forms:
/<path>
:
For example, /
,
/usr
, and
/home
swap
:
The partition will be used as swap space.
Following are the supported options:
--size
:
The minimum partition size in MBytes.
Specify an integer value such as 500.
Do not append the number with "MB".
You do not need this option if you use
--source
.
--source
:
This option is a wic-specific option that can
currently have one of two values, "bootimg" or
"rootfs".
If --source rootfs
is
used, it tells the wic
command
to create a partition as large as needed to fill
with the contents of the root filesystem
(specified by the -r
wic
option) and to fill it
with the contents of /rootfs
.
If --source bootimg
is used, it tells the wic
command to create a partition as large as needed to
fill with the contents of the boot partition
(specified by the -b
wic
option).
Exactly what those contents are depend on the value
of the --fstype
option for
that partition.
If --fstype=efi
is specified,
the boot artifacts contained in HDDDIR are used,
and if --fstype=msdos
is
specified, the boot artifacts found in
STAGING_DATADIR
are used.
--ondisk
or --ondrive
:
Forces the partition to be created on a particular
disk.
--fstype
:
Sets the file system type for the partition.
Valid values are:
msdos
efi
ext4
ext3
ext2
btrfs
swap
--label label
:
Specifies the label to give to the filesystem to
be made on the partition.
If the given label is already in use by another
filesystem, a new label is created for the
partition.
--active
:
Marks the partition as active.
--align (in KBytes)
:
This option is specific to the Meego Image
Creator (mic) that says to start a partition on an
x KBytes boundary.