[OE-core] [PATCH] connman: ignore the networking device which nfs for rootfs is working on
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Thu Oct 17 10:34:44 UTC 2013
Rongqing Li <rongqing.li at windriver.com> 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 think
> it is caused by which the script run slow.
strange; I just tested it with
--- connman.service ---
[Unit]
Description=Connection service
After=syslog.target
Wants = connman-env.service
[Service]
Type=dbus
BusName=net.connman
EnvironmentFile = -/run/connmand.env
ExecStart=/usr/sbin/connmand -n $CONNMAND_OPTS
[Install]
WantedBy=multi-user.target
--- connman-env.service ---
[Unit]
Before = connman.service
ConditionKernelCommandLine = root=/dev/nfs
[Service]
Type = oneshot
ExecStart = /bin/sh -c 'echo CONNMAND_OPTS=\\"--noipconfig=eth0\\" > /run/connmand.env'
[Install]
WantedBy = connman.service
which works fine. Of course, this is just a quick hack and needs some changes
(replacement of inline shell script, perhaps setting RemainAfterExit, using
'systemctl enable' instead of 'Wants = connman-env.service')
Enrico
More information about the Openembedded-core
mailing list