Rongqing Li <rongqing.li-cwa4wttnnzf54taoqty...@public.gmane.org> 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 generation into a dedicated one-shot service; e.g. modify the original connman.service to have something like [Service] EnvironmentFile = -/run/connmand.env ExecStart=/usr/sbin/connmand -n ${CONNMAND_OPTS} The '/run/connmand.env' is created by a service with [Unit] Before = connman.service ConditionKernelCommandLine!=root=/dev/nfs [Service] Type = oneshot ExecStart = /usr/sbin/create-run-connmand.env [Install] WantedBy = connman.service Enrico _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core