mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] systemd: make default-net-naming-scheme configurable
@ 2023-01-10 15:30 Michael Tretter
  2023-02-08 11:49 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tretter @ 2023-01-10 15:30 UTC (permalink / raw)
  To: ptxdist; +Cc: mtr

The default-net-naming-scheme parameter allows to preserve the naming
scheme of a previous systemd version on a newer version. It may be
necessary to preserve a naming scheme if other system components rely on
certain network interface names generated by some naming scheme.

The default is "latest" to use the naming scheme of the currently used
systemd version.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/systemd.in   | 8 ++++++++
 rules/systemd.make | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/systemd.in b/rules/systemd.in
index 0818bf535866..17997574b62e 100644
--- a/rules/systemd.in
+++ b/rules/systemd.in
@@ -158,6 +158,14 @@ config SYSTEMD_NSPAWN
 	bool
 	prompt "install systemd-nspawn"
 
+config SYSTEMD_DEFAULT_NET_NAMING_SCHEME
+	string
+	prompt "default net.naming-scheme= value"
+	default "latest"
+	help
+	  Preserve the naming scheme for network interfaces of the given
+	  systemd version.
+
 menu "journald                    "
 
 config SYSTEMD_XZ
diff --git a/rules/systemd.make b/rules/systemd.make
index e5a6b26a5c55..69b044bb8123 100644
--- a/rules/systemd.make
+++ b/rules/systemd.make
@@ -78,7 +78,7 @@ SYSTEMD_CONF_OPT	:= \
 	-Ddefault-llmnr=yes \
 	-Ddefault-locale=C \
 	-Ddefault-mdns=yes \
-	-Ddefault-net-naming-scheme=latest \
+	-Ddefault-net-naming-scheme=$(call remove_quotes,$(PTXCONF_SYSTEMD_DEFAULT_NET_NAMING_SCHEME)) \
 	-Ddev-kvm-mode=0660 \
 	-Ddns-over-tls=false \
 	-Ddns-servers= \
-- 
2.30.2




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

* Re: [ptxdist] [APPLIED] systemd: make default-net-naming-scheme configurable
  2023-01-10 15:30 [ptxdist] [PATCH] systemd: make default-net-naming-scheme configurable Michael Tretter
@ 2023-02-08 11:49 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2023-02-08 11:49 UTC (permalink / raw)
  To: ptxdist; +Cc: Michael Tretter

Thanks, applied as fe8c95898dfc49232eb75a98a383668dc056ffef.

Michael

[sent from post-receive hook]

On Wed, 08 Feb 2023 12:49:26 +0100, Michael Tretter <m.tretter@pengutronix.de> wrote:
> The default-net-naming-scheme parameter allows to preserve the naming
> scheme of a previous systemd version on a newer version. It may be
> necessary to preserve a naming scheme if other system components rely on
> certain network interface names generated by some naming scheme.
> 
> The default is "latest" to use the naming scheme of the currently used
> systemd version.
> 
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Message-Id: <20230110153021.1839663-1-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/systemd.in b/rules/systemd.in
> index 0818bf535866..17997574b62e 100644
> --- a/rules/systemd.in
> +++ b/rules/systemd.in
> @@ -158,6 +158,14 @@ config SYSTEMD_NSPAWN
>  	bool
>  	prompt "install systemd-nspawn"
>  
> +config SYSTEMD_DEFAULT_NET_NAMING_SCHEME
> +	string
> +	prompt "default net.naming-scheme= value"
> +	default "latest"
> +	help
> +	  Preserve the naming scheme for network interfaces of the given
> +	  systemd version.
> +
>  menu "journald                    "
>  
>  config SYSTEMD_XZ
> diff --git a/rules/systemd.make b/rules/systemd.make
> index e5a6b26a5c55..69b044bb8123 100644
> --- a/rules/systemd.make
> +++ b/rules/systemd.make
> @@ -78,7 +78,7 @@ SYSTEMD_CONF_OPT	:= \
>  	-Ddefault-llmnr=yes \
>  	-Ddefault-locale=C \
>  	-Ddefault-mdns=yes \
> -	-Ddefault-net-naming-scheme=latest \
> +	-Ddefault-net-naming-scheme=$(call remove_quotes,$(PTXCONF_SYSTEMD_DEFAULT_NET_NAMING_SCHEME)) \
>  	-Ddev-kvm-mode=0660 \
>  	-Ddns-over-tls=false \
>  	-Ddns-servers= \



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

end of thread, other threads:[~2023-02-08 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 15:30 [ptxdist] [PATCH] systemd: make default-net-naming-scheme configurable Michael Tretter
2023-02-08 11:49 ` [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