[OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-18 Thread rongqing.li
From: Roy Li Create connman-evn.service, which will run a script to compute the networking device when nfs root is on, and pass the result to connman.service Copy Connmand.service from source code, add ExecStartPre into it to release do_configure_append work, use the options which is passed by c

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-17 Thread Enrico Scholz
Rongqing Li writes: >>> Do you have any advice? >> >> I would split the cmdline generation into a dedicated one-shot service; >> e.g. modify the original connman.service to have something like > ... > I test your method, but failed to start connmand, > it always report "hand over timeout", I thin

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-17 Thread Koen Kooi
Op 17 okt. 2013, om 10:12 heeft rongqing...@windriver.com het volgende geschreven: > From: Roy Li > > Create connmand-nfs.service, which will run a script to ignore the > networking device when root is nfs. > Connmand-nfs.service will be run only when root is not nfs You when it *is* on nfs,

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-17 Thread Rongqing Li
Drop it, the commit header is wrong On 10/17/2013 04:12 PM, rongqing...@windriver.com wrote: From: Roy Li Create connmand-nfs.service, which will run a script to ignore the networking device when root is nfs. Connmand-nfs.service will be run only when root is not nfs Signed-off-by: Roy Li --

[OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-17 Thread rongqing.li
From: Roy Li Create connmand-nfs.service, which will run a script to ignore the networking device when root is nfs. Connmand-nfs.service will be run only when root is not nfs Signed-off-by: Roy Li --- meta/recipes-connectivity/connman/connman.inc | 17 +--- .../connman/connman/connm

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-16 Thread Rongqing Li
On 10/16/2013 06:08 PM, Enrico Scholz wrote: Rongqing Li writes: ConditionKernelCommandLine!=root=/dev/nfs What is your meaning? That's you are creating a huge script that does something built into systemd. Yes, I can not find a way to avoid to that, Do you have any advice? I wou

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-16 Thread Enrico Scholz
Rongqing Li writes: ConditionKernelCommandLine!=root=/dev/nfs >> >>> > >>> >What is your meaning? >> That's you are creating a huge script that does something built into systemd. >> > > > Yes, I can not find a way to avoid to that, > > Do you have any advice? I would split the cmdline

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-16 Thread Koen Kooi
Op 16 okt. 2013, om 11:10 heeft Rongqing Li het volgende geschreven: > > > On 10/16/2013 04:54 PM, Koen Kooi wrote: ConditionKernelCommandLine!=root=/dev/nfs >> >>> > >>> >What is your meaning? >> That's you are creating a huge script that does something built into systemd. >> > >

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-16 Thread Rongqing Li
On 10/16/2013 04:54 PM, Koen Kooi wrote: ConditionKernelCommandLine!=root=/dev/nfs >> > >What is your meaning? That's you are creating a huge script that does something built into systemd. Yes, I can not find a way to avoid to that, Do you have any advice? -Roy -- Best Reagrds, Roy |

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-16 Thread Koen Kooi
Op 16 okt. 2013, om 02:46 heeft Rongqing Li het volgende geschreven: > > > On 10/15/2013 06:10 PM, Koen Kooi wrote: >> >> Op 15 okt. 2013, om 10:12 heeft rongqing...@windriver.com het volgende >> geschreven: >> >>> From: Roy Li >>> >>> Otherwise system will hang since nfs is not disconne

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-15 Thread Rongqing Li
On 10/15/2013 06:10 PM, Koen Kooi wrote: Op 15 okt. 2013, om 10:12 heeft rongqing...@windriver.com het volgende geschreven: From: Roy Li Otherwise system will hang since nfs is not disconnected and remove the judgement of initscript DISTRO_FEATURE when install init script connman, becaus

Re: [OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-15 Thread Koen Kooi
Op 15 okt. 2013, om 10:12 heeft rongqing...@windriver.com het volgende geschreven: > From: Roy Li > > Otherwise system will hang since nfs is not disconnected > > and remove the judgement of initscript DISTRO_FEATURE when install init > script connman, because inherit systemd will remove init

[OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on

2013-10-15 Thread rongqing.li
From: Roy Li Otherwise system will hang since nfs is not disconnected and remove the judgement of initscript DISTRO_FEATURE when install init script connman, because inherit systemd will remove init script Signed-off-by: Roy Li --- meta/recipes-connectivity/connman/connman.inc | 12 +++