diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d27abc9e17..82e977ce0d 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -193,12 +193,12 @@ read_only_rootfs_hook () { | |||
193 | sed -i -e '/^[#[:space:]]*\/dev\/root/{s/defaults/ro/;s/\([[:space:]]*[[:digit:]]\)\([[:space:]]*\)[[:digit:]]$/\1\20/}' ${IMAGE_ROOTFS}/etc/fstab | 193 | sed -i -e '/^[#[:space:]]*\/dev\/root/{s/defaults/ro/;s/\([[:space:]]*[[:digit:]]\)\([[:space:]]*\)[[:digit:]]$/\1\20/}' ${IMAGE_ROOTFS}/etc/fstab |
194 | 194 | ||
195 | if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then | 195 | if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then |
196 | # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes | 196 | # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes |
197 | if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then | 197 | if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then |
198 | sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS | 198 | sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS |
199 | fi | 199 | fi |
200 | # Run populate-volatile.sh at rootfs time to set up basic files | 200 | # Run populate-volatile.sh at rootfs time to set up basic files |
201 | # and directories to support read-only rootfs. | 201 | # and directories to support read-only rootfs. |
202 | if [ -x ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh ]; then | 202 | if [ -x ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh ]; then |
203 | ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh | 203 | ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh |
204 | fi | 204 | fi |