From: <Qi.Chen@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Zhenfeng.Zhao@windriver.com
Subject: [PATCH V6 6/6] core-image-sato: support read-only rootfs
Date: Sun, 6 Jan 2013 17:44:28 +0800 [thread overview]
Message-ID: <c8df96d897ecdf4fe04088aff1eba2fbfb0c004a.1357465230.git.Qi.Chen@windriver.com> (raw)
In-Reply-To: <cover.1357465230.git.Qi.Chen@windriver.com>
From: Chen Qi <Qi.Chen@windriver.com>
Support read-only rootfs by providing a specific conf file for volatile storage.
[YOCTO #3406]
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-sato/images/core-image-sato.bb | 8 ++++++++
.../images/files/volatiles-readonly-sato | 14 ++++++++++++++
2 files changed, 22 insertions(+)
create mode 100644 meta/recipes-sato/images/files/volatiles-readonly-sato
diff --git a/meta/recipes-sato/images/core-image-sato.bb b/meta/recipes-sato/images/core-image-sato.bb
index f52a1a5..4ca1746 100644
--- a/meta/recipes-sato/images/core-image-sato.bb
+++ b/meta/recipes-sato/images/core-image-sato.bb
@@ -6,6 +6,14 @@ IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbe
LICENSE = "MIT"
+SRC_URI += "file://volatiles-readonly-sato"
+
inherit core-image
IMAGE_INSTALL += "packagegroup-core-x11-sato-games"
+
+# install read-only rootfs specific conf file for sato image
+choose_volatile_conf () {
+ cp ${WORKDIR}/volatiles-readonly-sato \
+ ${IMAGE_ROOTFS}/etc/default/volatiles/00_core_readonly
+}
diff --git a/meta/recipes-sato/images/files/volatiles-readonly-sato b/meta/recipes-sato/images/files/volatiles-readonly-sato
new file mode 100644
index 0000000..4a56b81
--- /dev/null
+++ b/meta/recipes-sato/images/files/volatiles-readonly-sato
@@ -0,0 +1,14 @@
+# This configuration file lists filesystem objects specific to sato image
+# with read-only rootfs.
+# This configuration file will only be applied if the image is sato and the
+# rootfs is read-only.
+# For the detailed format information, refer to /etc/default/volatiles/00_core.
+d root root 0755 /var/volatile/lib/ none
+d root root 0755 /var/volatile/lib/urandom/ none
+d root root 0755 /var/volatile/lib/dropbear/ none
+d root root 0755 /var/volatile/lib/nfs/ none
+d root root 0755 /var/volatile/lib/dbus/ none
+l root root 0755 /var/lib/urandom /var/volatile/lib/urandom
+l root root 0755 /var/lib/dropbear /var/volatile/lib/dropbear
+l root root 0755 /var/lib/nfs /var/volatile/lib/nfs
+l root root 0755 /var/lib/dbus /var/volatile/lib/dbus
--
1.7.9.5
next prev parent reply other threads:[~2013-01-06 9:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-06 9:44 [PATCH V6 0/6] read-only rootfs support Qi.Chen
2013-01-06 9:44 ` [PATCH V6 1/6] sysvinit: add ROOTFS_READ_ONLY variable to rcS-default Qi.Chen
2013-01-06 9:44 ` [PATCH V6 2/6] image.bbclass: add two funtions to support readonly rootfs Qi.Chen
2013-01-11 23:33 ` Saul Wold
2013-01-14 2:34 ` ChenQi
2013-01-06 9:44 ` [PATCH V6 3/6] core-image.bbclass: support read-only rootfs Qi.Chen
2013-01-06 9:52 ` Martin Jansa
2013-01-07 3:14 ` ChenQi
2013-01-06 9:44 ` [PATCH V6 4/6] initscripts: " Qi.Chen
2013-01-06 9:44 ` [PATCH V6 5/6] core-image-minimal: " Qi.Chen
2013-01-06 9:44 ` Qi.Chen [this message]
2013-01-06 19:05 ` [PATCH V6 6/6] core-image-sato: " Otavio Salvador
2013-01-07 3:06 ` ChenQi
2013-01-07 10:30 ` Otavio Salvador
2013-01-08 2:22 ` ChenQi
2013-01-11 23:32 ` Saul Wold
2013-01-14 2:35 ` ChenQi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8df96d897ecdf4fe04088aff1eba2fbfb0c004a.1357465230.git.Qi.Chen@windriver.com \
--to=qi.chen@windriver.com \
--cc=Zhenfeng.Zhao@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox