This command creates a partition on the system and uses the following syntax:
part mntpoint
The
is where the
partition will be mounted and must be of one of the
following forms:
mntpoint
/
:
For example, path
/
,
/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
names the source of the data that populates
the partition.
The most common value for this option is
"rootfs", but you can use any value that maps to
a valid source plugin.
For information on the source plugins, see the
"Plugins"
section.
If you use
‐‐source rootfs
,
wic
creates a partition as
large as needed and to fill it with the contents of
the root filesystem pointed to by the
-r
command-line option
or the equivalent rootfs derived from the
-e
command-line
option.
The filesystem type used to create the
partition is driven by the value of the
‐‐fstype
option
specified for the partition.
See the entry on
‐‐fstype
that
follows for more information.
If you use
‐‐source
,
plugin-name
wic
creates a partition as
large as needed and fills it with the contents of
the partition that is generated by the
specified plugin name using the data pointed
to by the -r
command-line
option or the equivalent rootfs derived from the
-e
command-line
option.
Exactly what those contents and
filesystem type end up being are dependent
on the given plugin implementation.
‐‐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:
ext4
ext3
ext2
btrfs
squashfs
swap
‐‐fsoptions
:
Specifies a free-form string of options to be
used when mounting the filesystem.
This string will be copied into the
/etc/fstab
file of the
installed system and should be enclosed in
quotes.
If not specified, the default string
is "defaults".
‐‐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 a wic
-specific
option that says to start a partition on an
x KBytes boundary.