5.7.8.1. Command: part or partition

Either of these commands create a partition on the system and uses the following syntax:

     part [mntpoint]
     partition [mntpoint]
                    

If you do not provide mntpoint, wic creates a partition but does not mount it.

The mntpoint is where the partition will be mounted and must be of one of the following forms:

Specifying a mntpoint causes the partition to automatically be mounted. Wic achieves this by adding entries to the filesystem table (fstab) during image generation. In order for wic to generate a valid fstab, you must also provide one of the --ondrive, --ondisk, or --use-uuid partition options as part of the command. Here is an example using "/" as the mountpoint. The command uses "--ondisk" to force the partition onto the sdb disk:

     part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024
                    

Here is a list that describes other supported options you can use with the part and partition commands: