]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd-conf: match ethernet interfaces by type rather than globbing
authorJack Mitchell <ml@embed.me.uk>
Thu, 3 Dec 2020 10:35:02 +0000 (10:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 6 Dec 2020 23:16:50 +0000 (23:16 +0000)
If we say we're enabling DHCP on wired/ethernet networks lets be more
specific than trying to catch everything with globbing.

Signed-off-by: Jack Mitchell <ml@embed.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-conf/wired.network

index dcf35345966855035ef03888f2bc976459d91d6c..09367edb103be4b897199c832a05f228bac70f33 100644 (file)
@@ -1,5 +1,5 @@
 [Match]
-Name=en* eth*
+Type=ether
 KernelCommandLine=!nfsroot
 
 [Network]