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

login
register
mail settings
Submitter rongqing.li@windriver.com
Date June 19, 2013, 6:37 a.m.
Message ID <92a2562fcefd5791424d47935898308b289eaf75.1371623706.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/51971/
State New
Headers show

Comments

rongqing.li@windriver.com - June 19, 2013, 6:37 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

enable read-only-rootfs to make /tmp be able to be written when using sysvinit

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/classes/image-live.bbclass |    2 ++
 1 file changed, 2 insertions(+)
Qi.Chen@windriver.com - June 24, 2013, 2:48 a.m.
On 06/19/2013 02:37 PM, rongqing.li@windriver.com wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> enable read-only-rootfs to make /tmp be able to be written when using sysvinit
>
> Signed-off-by: Roy.Li <rongqing.li@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"
>

Patch

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"
+
 do_bootimg[depends] += "${INITRD_IMAGE}:do_rootfs"
 do_bootimg[depends] += "${PN}:do_rootfs"