[OE-core] [PATCH 1/2] image-live.bbclass: enable read-only-rootfs IMAGE_FEATURE

ChenQi Qi.Chen at windriver.com
Mon Jun 24 02:48:39 UTC 2013


On 06/19/2013 02:37 PM, rongqing.li at windriver.com wrote:
> From: "Roy.Li" <rongqing.li at windriver.com>
>
> enable read-only-rootfs to make /tmp be able to be written when using sysvinit
>
> Signed-off-by: Roy.Li <rongqing.li at windriver.com>
> ---
>   meta/classes/image-live.bbclass |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/image-live.bbclass b/meta/classes/image-live.bbclass
> index bfb59f8..3f203d1 100644
> --- a/meta/classes/image-live.bbclass
> +++ b/meta/classes/image-live.bbclass
> @@ -9,6 +9,8 @@ LABELS_append = " ${SYSLINUX_LABELS} "
>   
>   ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.ext3"
>   
> +IMAGE_FEATURES_append = " read-only-rootfs"
> +
This will result in installation of a read-only-rootfs image by default 
if we use this live image as an installer.
We should use aufs in live image. Note that the unionfs has been 
disabled for more than a year.
See https://bugzilla.yoctoproject.org/show_bug.cgi?id=4761 for more info.

Best Regards,
Chen Qi

>   do_bootimg[depends] += "${INITRD_IMAGE}:do_rootfs"
>   do_bootimg[depends] += "${PN}:do_rootfs"
>   




More information about the Openembedded-core mailing list