mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
dev-manual: clarify how to select "read-only-rootfs"
For stylistic reasons, clarify the use of both IMAGE_FEATURES versus EXTRA_IMAGE_FEATURES when configuring a read-only rootfs. (From yocto-docs rev: 4111e4e70a87400671455ddd873d802d40d6b587) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fc4d55008e
commit
4a115c52cf
@@ -11195,18 +11195,18 @@
|
||||
|
||||
<para>
|
||||
To create the read-only root filesystem, simply add the
|
||||
"read-only-rootfs" feature to your image.
|
||||
Using either of the following statements in your
|
||||
image recipe or from within the
|
||||
<filename>local.conf</filename> file found in the
|
||||
<ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>
|
||||
causes the build system to create a read-only root filesystem:
|
||||
"read-only-rootfs" feature to your image, normally in one of two ways.
|
||||
The first way is to add the "read-only-rootfs" image feature
|
||||
in the image's recipe file via the
|
||||
<filename>IMAGE_FEATURES</filename> variable:
|
||||
<literallayout class='monospaced'>
|
||||
IMAGE_FEATURES = "read-only-rootfs"
|
||||
IMAGE_FEATURES += "read-only-rootfs"
|
||||
</literallayout>
|
||||
or
|
||||
As an alternative, you can add the same feature from within your
|
||||
build directory's <filename>local.conf</filename> file with the
|
||||
associated <filename>EXTRA_IMAGE_FEATURES</filename> variable, as in:
|
||||
<literallayout class='monospaced'>
|
||||
EXTRA_IMAGE_FEATURES += "read-only-rootfs"
|
||||
EXTRA_IMAGE_FEATURES = "read-only-rootfs"
|
||||
</literallayout>
|
||||
</para>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user