]> code.ossystems Code Review - openembedded-core.git/commitdiff
sysvinit: adjust boot sequence and remove hack from udev
authorChen Qi <qi.chen@windriver.com>
Sat, 2 Nov 2013 05:22:00 +0000 (13:22 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Nov 2013 17:24:52 +0000 (17:24 +0000)
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]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initscripts/initscripts_1.0.bb
meta/recipes-core/udev/udev.inc
meta/recipes-core/udev/udev/init
meta/recipes-kernel/modutils-initscripts/modutils-initscripts.bb

index c2998c3a0259de98982bbf24e543fdfdb6dbbdda..2d582660fadbe5afb98a287d0ba9adb99f861795 100644 (file)
@@ -115,7 +115,7 @@ do_install () {
        update-rc.d -r ${D} save-rtc.sh start 25 0 6 .
        update-rc.d -r ${D} banner.sh start 02 S .
        update-rc.d -r ${D} checkroot.sh start 06 S .
-       update-rc.d -r ${D} mountall.sh start 35 S .
+       update-rc.d -r ${D} mountall.sh start 03 S .
        update-rc.d -r ${D} hostname.sh start 39 S .
        update-rc.d -r ${D} mountnfs.sh start 45 S .
        update-rc.d -r ${D} bootmisc.sh start 55 S .
index 2ff8f006da918cdfc7db4cb0a35aeeccf81a0e57..02cab3b0d6823f691b7354e9243250f46d5fc493 100644 (file)
@@ -50,7 +50,7 @@ PACKAGES =+ "libgudev libgudev-dev libgudev-dbg"
 
 INITSCRIPT_PACKAGES = "udev udev-cache"
 INITSCRIPT_NAME_udev = "udev"
-INITSCRIPT_PARAMS_udev = "start 03 S ."
+INITSCRIPT_PARAMS_udev = "start 04 S ."
 INITSCRIPT_NAME_udev-cache = "udev-cache"
 INITSCRIPT_PARAMS_udev-cache = "start 36 S ."
 
index e048a171da591140b1b88f99a513e7e576c6fe30..410a650bd19215150f959a51b1132974e1004912 100644 (file)
@@ -54,7 +54,9 @@ case "$1" in
     }
     [ -e /dev/pts ] || mkdir -m 0755 /dev/pts
     [ -e /dev/shm ] || mkdir -m 1777 /dev/shm
-    mount -a -t tmpfs 2>/dev/null
+    # the automount rule for udev needs /tmp directory available, as /tmp is a symlink
+    # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure
+    # /var/volatile/tmp directory to be available.
     mkdir -p /var/volatile/tmp
 
     # Cache handling.
index 89d38cff452718879c710da5c89b2a19692b31f6..594e554871c0ba6619da49c6bdf0bd932e7fc2b3 100644 (file)
@@ -7,7 +7,7 @@ SRC_URI = "file://modutils.sh \
 PR = "r6"
 
 INITSCRIPT_NAME = "modutils.sh"
-INITSCRIPT_PARAMS = "start 4 S ."
+INITSCRIPT_PARAMS = "start 05 S ."
 
 inherit update-rc.d