From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] systemd: match end0 interface in default network rule
Date: Tue, 2 May 2023 09:06:09 +0200 [thread overview]
Message-ID: <20230502070609.316605-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20230427121133.236696-1-m.tretter@pengutronix.de>
Thanks, applied as f23dfbb003da0afc25349b086d02a61dfd86703a.
Michael
[sent from post-receive hook]
On Tue, 02 May 2023 09:06:09 +0200, Michael Tretter <m.tretter@pengutronix.de> wrote:
> 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>
> Message-Id: <20230427121133.236696-1-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> 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]
prev parent reply other threads:[~2023-05-02 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-27 12:11 [ptxdist] [PATCH] " Michael Tretter
2023-05-02 7:06 ` Michael Olbrich [this message]
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=20230502070609.316605-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=m.tretter@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