From 75078dd273ba4565b035421b82e033c675439495 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 18 Jan 2016 07:31:17 -0800 Subject: dev-manual: Updated wic reference section Fixes [YOCTO #8844] Made some changes to reflect the requirement of certain options when creating a partion such that the partition is automatically mounted. (From yocto-docs rev: 096f33b7b7a0360c1df345dd669bbe00723b1882) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 39 ++++++++++++++++++---- 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 767f51ccfa..f0ea10107d 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -4491,11 +4491,18 @@ Command: part or partition - This command creates a partition on the system and uses the - following syntax: + Either of these commands create a partition on the system + and uses the following syntax: - part mntpoint + 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 @@ -4503,16 +4510,36 @@ /path: For example, /, - /usr, and + /usr, or /home swap: - The partition will be used as swap space. + The created partition is used as swap space. - Following are the supported options: + 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: --size: The minimum partition size in MBytes. -- cgit 1.2.3-korg