summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorChen Qi <qi.chen@windriver.com>2013-11-02 13:22:00 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-08 17:25:36 +0000
commit8a03d595b39dd9714c2eb9ea98618a666e8f6de2 (patch)
tree9da29e7a791a084c261bc3257c09f411de132b88 /meta/recipes-core
parentf7140dc6f376df3a4cac341d62e41c63738d82b9 (diff)
downloadpoky-8a03d595b39dd9714c2eb9ea98618a666e8f6de2.tar.gz
sysvinit: adjust boot sequence and remove hack from udev
Adjust the boot sequence in sysvinit based systems. The mountall.sh (mounting the local file system) needs to be started before udev and bootlogd. This patch makes mountall.sh start before udev and removes the hack of mounting tmpfs in the udev init script. This patch also adds some comments to the udev init script to make it clear why we create the '/var/volatile/tmp' directory. [YOCTO #5273] (From OE-Core rev: f6a9df6b7cd411b52e71022b8f7bf8bda6395649) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initscripts/initscripts_1.0.bb2
-rw-r--r--meta/recipes-core/udev/udev.inc2
-rw-r--r--meta/recipes-core/udev/udev/init4
3 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index c2998c3a02..2d582660fa 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -115,7 +115,7 @@ do_install () {
115 update-rc.d -r ${D} save-rtc.sh start 25 0 6 . 115 update-rc.d -r ${D} save-rtc.sh start 25 0 6 .
116 update-rc.d -r ${D} banner.sh start 02 S . 116 update-rc.d -r ${D} banner.sh start 02 S .
117 update-rc.d -r ${D} checkroot.sh start 06 S . 117 update-rc.d -r ${D} checkroot.sh start 06 S .
118 update-rc.d -r ${D} mountall.sh start 35 S . 118 update-rc.d -r ${D} mountall.sh start 03 S .
119 update-rc.d -r ${D} hostname.sh start 39 S . 119 update-rc.d -r ${D} hostname.sh start 39 S .
120 update-rc.d -r ${D} mountnfs.sh start 45 S . 120 update-rc.d -r ${D} mountnfs.sh start 45 S .
121 update-rc.d -r ${D} bootmisc.sh start 55 S . 121 update-rc.d -r ${D} bootmisc.sh start 55 S .
diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 2ff8f006da..02cab3b0d6 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -50,7 +50,7 @@ PACKAGES =+ "libgudev libgudev-dev libgudev-dbg"
50 50
51INITSCRIPT_PACKAGES = "udev udev-cache" 51INITSCRIPT_PACKAGES = "udev udev-cache"
52INITSCRIPT_NAME_udev = "udev" 52INITSCRIPT_NAME_udev = "udev"
53INITSCRIPT_PARAMS_udev = "start 03 S ." 53INITSCRIPT_PARAMS_udev = "start 04 S ."
54INITSCRIPT_NAME_udev-cache = "udev-cache" 54INITSCRIPT_NAME_udev-cache = "udev-cache"
55INITSCRIPT_PARAMS_udev-cache = "start 36 S ." 55INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
56 56
diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
index e048a171da..410a650bd1 100644
--- a/meta/recipes-core/udev/udev/init
+++ b/meta/recipes-core/udev/udev/init
@@ -54,7 +54,9 @@ case "$1" in
54 } 54 }
55 [ -e /dev/pts ] || mkdir -m 0755 /dev/pts 55 [ -e /dev/pts ] || mkdir -m 0755 /dev/pts
56 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm 56 [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
57 mount -a -t tmpfs 2>/dev/null 57 # the automount rule for udev needs /tmp directory available, as /tmp is a symlink
58 # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure
59 # /var/volatile/tmp directory to be available.
58 mkdir -p /var/volatile/tmp 60 mkdir -p /var/volatile/tmp
59 61
60 # Cache handling. 62 # Cache handling.