On 01/06/2013 05:52 PM, Martin Jansa wrote:
On Sun, Jan 06, 2013 at 05:44:25PM +0800, [email protected] wrote:
From: Chen Qi <[email protected]>

The hook function is appended to ROOTFS_POSTPROCESS_COMMAND
properly to support the 'read-only-rootfs' image feature.

[YOCTO #3406]

Signed-off-by: Chen Qi <[email protected]>
---
  meta/classes/core-image.bbclass |    5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass
index 2e67018..ebb9597 100644
--- a/meta/classes/core-image.bbclass
+++ b/meta/classes/core-image.bbclass
@@ -28,6 +28,7 @@ LIC_FILES_CHKSUM = 
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
  # - dev-pkgs            - development packages (headers, etc.) for all 
installed packages in the rootfs
  # - dbg-pkgs            - debug symbol packages for all installed packages in 
the rootfs
  # - doc-pkgs            - documentation packages for all installed packages 
in the rootfs
+# - read-only-rootfs    - tweaks an image to support read-only rootfs
  #
  PACKAGE_GROUP_x11 = "packagegroup-core-x11"
  PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base"
@@ -73,9 +74,9 @@ inherit image
# Create /etc/timestamp during image construction to give a reasonably sane default time setting
  ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; "
-
  # Zap the root password if debug-tweaks feature is not enabled
  ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", 
"zap_root_password ; ",d)}'
  # Allow openssh accept empty password login if both debug-tweaks and 
ssh-server-openssh are enabled
  ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks 
ssh-server-openssh", "openssh_allow_empty_password; ", "",d)}'
-
+# Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is 
enabled
This read_only_rootfs_hook does more than that, please update comment

Cheers,


Thank you for your kindly reminding.

I've modified the comment and sent out this patch again.

Cheers,
Chen Qi

+ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "read-only-rootfs", 
"read_only_rootfs_hook; ", "",d)}'
--
1.7.9.5


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to