Skip to contentSkip to conversation

create /usr/lib/locale dir and enable read-only-rootfs for live image

PATCH In review [email protected] 2 participants 4 messages Jun 19, 2013 – Jun 24, 2013

lore
Share & tools
lore
#0 lore raw

cover create /usr/lib/locale dir and enable read-only-rootfs for live image

From: "Roy.Li" <[email protected]>

The following changes since commit ea31d45def0e9fc4ed1c1ef92756d807ff59fe72:

core-image-weston: add weston-examples to the image (2013-06-18 16:43:16 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib roy/base-files-and-image-live
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/base-files-and-image-live

Roy.Li (2):
image-live.bbclass: enable read-only-rootfs IMAGE_FEATURE
base-files: create /usr/lib/locale dir

 meta/classes/image-live.bbclass                   |    2 ++
 meta/recipes-core/base-files/base-files_3.0.14.bb |    3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/2 image-live.bbclass: enable read-only-rootfs IMAGE_FEATURE

From: "Roy.Li" <[email protected]>

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

---
 meta/classes/image-live.bbclass |    2 ++
 1 file changed, 2 insertions(+)
meta/classes/image-live.bbclass +2 -0
index bfb59f8..3f203d1 100644
@@ -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"
 
Signature · 1 line
1.7.10.4
#2 lore raw

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

Quoted 14 lines · On 06/19/2013 02:37 PM, [email protected] wrote:

From: "Roy.Li" <[email protected]>

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

---
  meta/classes/image-live.bbclass |    2 ++
  1 file changed, 2 insertions(+)
meta/classes/image-live.bbclass +0 -0
index bfb59f8..3f203d1 100644

meta/classes/image-live.bbclass LABELS_append = " ${SYSLINUX_LABELS} " · line 13

Quoted 5 lines
meta/classes/image-live.bbclass +2 -0
@@ -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

Quoted 3 lines
meta/classes/image-live.bbclass +0 -0
  do_bootimg[depends] += "${INITRD_IMAGE}:do_rootfs"
  do_bootimg[depends] += "${PN}:do_rootfs"
 
#3 lore raw

PATCH 2/2 base-files: create /usr/lib/locale dir

In reply to [email protected]

From: "Roy.Li" <[email protected]>

Lsbtest shows that /usr/lib/locale dir is lost, so create it

---
 meta/recipes-core/base-files/base-files_3.0.14.bb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/base-files/base-files_3.0.14.bb +2 -1
index ac85ed9..88d1ac9 100644
@@ -49,7 +49,8 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \
 dirs3755 = "/srv  \
             ${prefix}/local ${prefix}/local/bin ${prefix}/local/games \
             ${prefix}/local/include ${prefix}/local/lib ${prefix}/local/sbin \
-            ${prefix}/local/share ${prefix}/local/src"
+            ${prefix}/local/share ${prefix}/local/src \
+            ${prefix}/lib/locale"
 dirs4775 = "/var/mail"
 
 volatiles = "log tmp"
Signature · 1 line
1.7.10.4