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

Koen Kooi koen at dominion.thruhere.net
Thu Oct 17 10:14:13 UTC 2013


Op 17 okt. 2013, om 10:12 heeft rongqing.li at windriver.com het volgende geschreven:

> From: Roy Li <rongqing.li at windriver.com>
> 
> 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, since the it tests for root=/dev/nfs being present

> diff --git a/meta/recipes-connectivity/connman/connman/nfs-connman.service b/meta/recipes-connectivity/connman/connman/nfs-connman.service
> new file mode 100644
> index 0000000..1cb82b8
> --- /dev/null
> +++ b/meta/recipes-connectivity/connman/connman/nfs-connman.service
> @@ -0,0 +1,15 @@
> +[Unit]
> +Description=Connection service when root is /dev/nfs
> +ConditionKernelCommandLine=root=/dev/nfs
> +After=syslog.target
> +
> +[Service]
> +Type=dbus
> +BusName=net.connman
> +Restart=on-failure
> +ExecStartPre=-/usr/lib64/connman/wired-setup
> +ExecStart=/bin/sh /usr/sbin/connmand-nfs

And as I said before, these hardcoded paths are not going to work.


More information about the Openembedded-core mailing list