mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] systemd: match end0 interface in default network rule
@ 2023-04-27 12:11 Michael Tretter
  2023-05-02  7:06 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tretter @ 2023-04-27 12:11 UTC (permalink / raw)
  To: ptxdist; +Cc: mtr

Since systemd v252, the network interface name is generated based on the
device tree. Thus, the default network interface may no longer be named
eth0.

Make sure that DHCP is used on the renamed interface, too.

Rename the file to default.network to avoid the interface name in the
file name.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 .../usr/lib/systemd/network/{eth0.network => default.network}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename projectroot/usr/lib/systemd/network/{eth0.network => default.network} (80%)

diff --git a/projectroot/usr/lib/systemd/network/eth0.network b/projectroot/usr/lib/systemd/network/default.network
similarity index 80%
rename from projectroot/usr/lib/systemd/network/eth0.network
rename to projectroot/usr/lib/systemd/network/default.network
index 818a6bd5b3fa..350dbf4a2b9b 100644
--- a/projectroot/usr/lib/systemd/network/eth0.network
+++ b/projectroot/usr/lib/systemd/network/default.network
@@ -1,5 +1,5 @@
 [Match]
-Name=eth0
+Name=eth0 end0
 KernelCommandLine=!root=/dev/nfs
 
 [Network]
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-02  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-27 12:11 [ptxdist] [PATCH] systemd: match end0 interface in default network rule Michael Tretter
2023-05-02  7:06 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox