diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2016-01-18 07:31:17 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-29 17:04:47 +0000 |
commit | 75078dd273ba4565b035421b82e033c675439495 (patch) | |
tree | a80554d8255ca47d3563fd2b07767bb060a4e82f /documentation/dev-manual/dev-manual-common-tasks.xml | |
parent | 9ed7881406fa02679a77851f88c49c19afd9e445 (diff) | |
download | openembedded-core-contrib-75078dd273ba4565b035421b82e033c675439495.tar.gz |
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 <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 39 |
1 files changed, 33 insertions, 6 deletions
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 @@ <title>Command: part or partition</title> <para> - 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: <literallayout class='monospaced'> - part <replaceable>mntpoint</replaceable> + part [<replaceable>mntpoint</replaceable>] + partition [<replaceable>mntpoint</replaceable>] </literallayout> + If you do not provide + <replaceable>mntpoint</replaceable>, wic creates a partition + but does not mount it. + </para> + + <para> The <filename><replaceable>mntpoint</replaceable></filename> is where the partition will be mounted and must be of one of the @@ -4503,16 +4510,36 @@ <itemizedlist> <listitem><para><filename>/<replaceable>path</replaceable></filename>: For example, <filename>/</filename>, - <filename>/usr</filename>, and + <filename>/usr</filename>, or <filename>/home</filename></para></listitem> <listitem><para><filename>swap</filename>: - The partition will be used as swap space. + The created partition is used as swap space. </para></listitem> </itemizedlist> </para> <para> - Following are the supported options: + Specifying a <replaceable>mntpoint</replaceable> 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 <filename>--ondrive</filename>, + <filename>--ondisk</filename>, or + <filename>--use-uuid</filename> 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 <filename>sdb</filename> disk: + <literallayout class='monospaced'> + part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024 + </literallayout> + </para> + + <para> + Here is a list that describes other supported options you + can use with the <filename>part</filename> and + <filename>partition</filename> commands: <itemizedlist> <listitem><para><emphasis><filename>--size</filename>:</emphasis> The minimum partition size in MBytes. |