Patchwork [1/1] init-ifupdown: adjust priority of networking to fix system freeze problem

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date Dec. 12, 2013, 8:38 a.m.
Message ID <85e2c3972116140d8302bbd577bd13cd121f98d6.1386837420.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/63253/
State Accepted
Commit bf595ca4b6cf5a2bf6bff0581bb927521e5767bb
Headers show

Comments

Qi.Chen@windriver.com - Dec. 12, 2013, 8:38 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

On mpc8315e, a system freeze is encountered at system boot time if
connman and init-ifupdown are installed.

The error message before the freeze is:
    "ip: RTNETLINK answers: File exists"

This problem is introduced by the following commit.
    dc80eea sysvinit: fix problem in switching runlevels

Part of the above commit is to make the networking init script run
at runlevel 2 3 4 5 instead of runlevel S. However, after the change,
networking is run after connman. And this causes the problem stated
above.

Make networking run first when entering runlevel 2 3 4 5, so that we
don't break things.

[YOCTO #5651]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../init-ifupdown/init-ifupdown_1.0.bb             |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
index 0f4290c..77e8384 100644
--- a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
+++ b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
@@ -9,7 +9,7 @@  PR = "r3"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "networking"
-INITSCRIPT_PARAMS = "start 10 2 3 4 5 . stop 80 0 6 1 ."
+INITSCRIPT_PARAMS = "start 01 2 3 4 5 . stop 80 0 6 1 ."
 
 SRC_URI = "file://copyright \
            file://init \