Hongxu Jia <hongxu.jia-cwa4wttnnzf54taoqty...@public.gmane.org> writes:

> While networkd supported, we add network config which starts
> dhcp by default.
> ...
> +++ b/meta/recipes-core/systemd/systemd/oe-core.network
> @@ -0,0 +1,8 @@
> +[Match]
> +Name=eth*
> +
> +[Network]
> +DHCP=v4
> +
> +[DHCPv4]
> +UseHostname=false

IMO, this is too much a target specific customization.  DHCP is not
used everywhere; it might conflict with NFS rootfs, there are different
preferences for the DHCP options (UseDomains, VendorClassIdentifier,
CriticalConnection, ...).

It would be better to place this confguration into a separate recipe.


> +             install -m 0755 ${WORKDIR}/oe-core.network 
> ${D}${sysconfdir}/systemd/network

You should name this file like '50-oe-core.network' to make it easier to
override it.


Enrico
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to