summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-04-10 15:38:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-10 16:49:24 +0100
commitcb4db44c14959ca76870cfaf02b5d314ac68ba8f (patch)
tree37fcd2a0b0590b3520146fac57fec66eb027e297 /meta
parent1b7785c5379c0abf38005abd056409fcde4e0c38 (diff)
downloadpoky-cb4db44c14959ca76870cfaf02b5d314ac68ba8f.tar.gz
initscripts: fix read-only-rootfs-hook.sh to start earlier
Mount /var/volatile ourselves so that we can set up the writable area first. This fixes the urandom service not starting properly when read-only-rootfs is enabled. (From OE-Core rev: 44c7d8a27a84a04251408e9a7d9550629bc17704) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh1
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh b/meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh
index 4f3e0d9645..9cf0921670 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/read-only-rootfs-hook.sh
@@ -5,6 +5,7 @@
5[ "$ROOTFS_READ_ONLY" = "no" ] && exit 0 5[ "$ROOTFS_READ_ONLY" = "no" ] && exit 0
6 6
7if [ "$1" = "start" ] ; then 7if [ "$1" = "start" ] ; then
8 grep -q "tmpfs /var/volatile" /proc/mounts || mount /var/volatile
8 mkdir -p /var/volatile/lib 9 mkdir -p /var/volatile/lib
9 cp -a /var/lib/* /var/volatile/lib 10 cp -a /var/lib/* /var/volatile/lib
10 mount --bind /var/volatile/lib /var/lib 11 mount --bind /var/volatile/lib /var/lib
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 649e18269e..531b2b62df 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -118,7 +118,7 @@ do_install () {
118 update-rc.d -r ${D} bootmisc.sh start 55 S . 118 update-rc.d -r ${D} bootmisc.sh start 55 S .
119 update-rc.d -r ${D} sysfs.sh start 02 S . 119 update-rc.d -r ${D} sysfs.sh start 02 S .
120 update-rc.d -r ${D} populate-volatile.sh start 37 S . 120 update-rc.d -r ${D} populate-volatile.sh start 37 S .
121 update-rc.d -r ${D} read-only-rootfs-hook.sh start 41 S . 121 update-rc.d -r ${D} read-only-rootfs-hook.sh start 29 S .
122 update-rc.d -r ${D} devpts.sh start 38 S . 122 update-rc.d -r ${D} devpts.sh start 38 S .
123 if [ "${TARGET_ARCH}" = "arm" ]; then 123 if [ "${TARGET_ARCH}" = "arm" ]; then
124 update-rc.d -r ${D} alignment.sh start 06 S . 124 update-rc.d -r ${D} alignment.sh start 06 S .