diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-01-22 10:38:12 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-07 11:20:02 +0000 |
commit | d823759b4594143d522eae0b2a2498436a6dcb1e (patch) | |
tree | 886a934d9fcb1829e7958d46411733935c2221a6 /meta | |
parent | 142ae3bb06cfa9b3baa6861b95d72d5c991458c3 (diff) | |
download | poky-d823759b4594143d522eae0b2a2498436a6dcb1e.tar.gz |
core-image.bbclass: support read-only rootfs
The hook function is appended to ROOTFS_POSTPROCESS_COMMAND
properly to support the 'read-only-rootfs' image feature.
[YOCTO #3406]
(From OE-Core rev: 05182ee354a9f773c8ab2f4cd7f1fdf552e7fcda)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/core-image.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/core-image.bbclass b/meta/classes/core-image.bbclass index 657d5f243a..4c70d329a6 100644 --- a/meta/classes/core-image.bbclass +++ b/meta/classes/core-image.bbclass | |||
@@ -29,6 +29,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3 | |||
29 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs | 29 | # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs |
30 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs | 30 | # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs |
31 | # - doc-pkgs - documentation packages for all installed packages in the rootfs | 31 | # - doc-pkgs - documentation packages for all installed packages in the rootfs |
32 | # - read-only-rootfs - tweaks an image to support read-only rootfs | ||
32 | # | 33 | # |
33 | PACKAGE_GROUP_x11 = "packagegroup-core-x11" | 34 | PACKAGE_GROUP_x11 = "packagegroup-core-x11" |
34 | PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base" | 35 | PACKAGE_GROUP_x11-base = "packagegroup-core-x11-base" |
@@ -80,3 +81,6 @@ ROOTFS_POSTPROCESS_COMMAND += "rootfs_update_timestamp ; " | |||
80 | 81 | ||
81 | # Zap the root password if debug-tweaks feature is not enabled | 82 | # Zap the root password if debug-tweaks feature is not enabled |
82 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_root_password ; ",d)}' | 83 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_root_password ; ",d)}' |
84 | |||
85 | # Tweak the mount options for rootfs in /etc/fstab if read-only-rootfs is enabled | ||
86 | ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "read_only_rootfs_hook; ", "",d)}' | ||