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 | |
parent | 9ed7881406fa02679a77851f88c49c19afd9e445 (diff) | |
download | poky-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')
-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 @@ | |||
4491 | <title>Command: part or partition</title> | 4491 | <title>Command: part or partition</title> |
4492 | 4492 | ||
4493 | <para> | 4493 | <para> |
4494 | This command creates a partition on the system and uses the | 4494 | Either of these commands create a partition on the system |
4495 | following syntax: | 4495 | and uses the following syntax: |
4496 | <literallayout class='monospaced'> | 4496 | <literallayout class='monospaced'> |
4497 | part <replaceable>mntpoint</replaceable> | 4497 | part [<replaceable>mntpoint</replaceable>] |
4498 | partition [<replaceable>mntpoint</replaceable>] | ||
4498 | </literallayout> | 4499 | </literallayout> |
4500 | If you do not provide | ||
4501 | <replaceable>mntpoint</replaceable>, wic creates a partition | ||
4502 | but does not mount it. | ||
4503 | </para> | ||
4504 | |||
4505 | <para> | ||
4499 | The <filename><replaceable>mntpoint</replaceable></filename> | 4506 | The <filename><replaceable>mntpoint</replaceable></filename> |
4500 | is where the | 4507 | is where the |
4501 | partition will be mounted and must be of one of the | 4508 | partition will be mounted and must be of one of the |
@@ -4503,16 +4510,36 @@ | |||
4503 | <itemizedlist> | 4510 | <itemizedlist> |
4504 | <listitem><para><filename>/<replaceable>path</replaceable></filename>: | 4511 | <listitem><para><filename>/<replaceable>path</replaceable></filename>: |
4505 | For example, <filename>/</filename>, | 4512 | For example, <filename>/</filename>, |
4506 | <filename>/usr</filename>, and | 4513 | <filename>/usr</filename>, or |
4507 | <filename>/home</filename></para></listitem> | 4514 | <filename>/home</filename></para></listitem> |
4508 | <listitem><para><filename>swap</filename>: | 4515 | <listitem><para><filename>swap</filename>: |
4509 | The partition will be used as swap space. | 4516 | The created partition is used as swap space. |
4510 | </para></listitem> | 4517 | </para></listitem> |
4511 | </itemizedlist> | 4518 | </itemizedlist> |
4512 | </para> | 4519 | </para> |
4513 | 4520 | ||
4514 | <para> | 4521 | <para> |
4515 | Following are the supported options: | 4522 | Specifying a <replaceable>mntpoint</replaceable> causes |
4523 | the partition to automatically be mounted. | ||
4524 | Wic achieves this by adding entries to the filesystem | ||
4525 | table (fstab) during image generation. | ||
4526 | In order for wic to generate a valid fstab, you must | ||
4527 | also provide one of the <filename>--ondrive</filename>, | ||
4528 | <filename>--ondisk</filename>, or | ||
4529 | <filename>--use-uuid</filename> partition options as part | ||
4530 | of the command. | ||
4531 | Here is an example using "/" as the mountpoint. | ||
4532 | The command uses "--ondisk" to force the partition onto | ||
4533 | the <filename>sdb</filename> disk: | ||
4534 | <literallayout class='monospaced'> | ||
4535 | part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024 | ||
4536 | </literallayout> | ||
4537 | </para> | ||
4538 | |||
4539 | <para> | ||
4540 | Here is a list that describes other supported options you | ||
4541 | can use with the <filename>part</filename> and | ||
4542 | <filename>partition</filename> commands: | ||
4516 | <itemizedlist> | 4543 | <itemizedlist> |
4517 | <listitem><para><emphasis><filename>--size</filename>:</emphasis> | 4544 | <listitem><para><emphasis><filename>--size</filename>:</emphasis> |
4518 | The minimum partition size in MBytes. | 4545 | The minimum partition size in MBytes. |