From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: mtr@pengutronix.de
Subject: [ptxdist] [PATCH] systemd: match end0 interface in default network rule
Date: Thu, 27 Apr 2023 14:11:33 +0200 [thread overview]
Message-ID: <20230427121133.236696-1-m.tretter@pengutronix.de> (raw)
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
next reply other threads:[~2023-04-27 12:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-27 12:11 Michael Tretter [this message]
2023-05-02 7:06 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230427121133.236696-1-m.tretter@pengutronix.de \
--to=m.tretter@pengutronix.de \
--cc=mtr@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox