* [ptxdist] [PATCH] networkmanager: allow not installing system-connections
@ 2025-08-14 10:37 Fabian Pflug
2025-08-29 9:46 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Pflug @ 2025-08-14 10:37 UTC (permalink / raw)
To: ptxdist; +Cc: Fabian Pflug
If system-connections are managed by another packagee, they confict.
Allow for them to not be installed by NetworkManager, but keep the
previous behaviour as default settings.
Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
rules/networkmanager.in | 5 +++++
rules/networkmanager.make | 2 ++
2 files changed, 7 insertions(+)
diff --git a/rules/networkmanager.in b/rules/networkmanager.in
index 6fbba9752..4b2937a53 100644
--- a/rules/networkmanager.in
+++ b/rules/networkmanager.in
@@ -102,6 +102,11 @@ config NETWORKMANAGER_EXAMPLES
bool
prompt "install examples for Network Manager"
+config NETWORKMANAGER_SYSTEM_CONNECTIONS
+ bool
+ default y
+ prompt "install /etc/NetworkManagers/system-connections"
+
config NETWORKMANAGER_POLKIT
bool
depends on BROKEN
diff --git a/rules/networkmanager.make b/rules/networkmanager.make
index b9f4befc8..0585aead5 100644
--- a/rules/networkmanager.make
+++ b/rules/networkmanager.make
@@ -132,7 +132,9 @@ $(STATEDIR)/networkmanager.targetinstall:
@$(call install_alternative, networkmanager, 0, 0, 0644, /etc/NetworkManager/NetworkManager.conf)
@$(call install_copy, networkmanager, 0, 0, 0755, /etc/NetworkManager/dispatcher.d/)
+ifdef NETWORKMANAGER_SYSTEM_CONNECTIONS
@$(call install_copy, networkmanager, 0, 0, 0755, /etc/NetworkManager/system-connections/)
+endif
# # unmanage NFS root devices
@$(call install_alternative, networkmanager, 0, 0, 0755, /usr/lib/init/nm-unmanage.sh)
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] networkmanager: allow not installing system-connections
2025-08-14 10:37 [ptxdist] [PATCH] networkmanager: allow not installing system-connections Fabian Pflug
@ 2025-08-29 9:46 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-08-29 9:46 UTC (permalink / raw)
To: ptxdist; +Cc: Fabian Pflug
Thanks, applied as be01c0cf8d6dd3275b5427481224fdbb1e5a1b5e.
Michael
[sent from post-receive hook]
On Fri, 29 Aug 2025 11:46:23 +0200, Fabian Pflug <f.pflug@pengutronix.de> wrote:
> If system-connections are managed by another packagee, they confict.
> Allow for them to not be installed by NetworkManager, but keep the
> previous behaviour as default settings.
>
> Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
> Message-Id: <20250814103751.1994181-1-f.pflug@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/networkmanager.in b/rules/networkmanager.in
> index 6fbba97525af..cd75df1aa6e2 100644
> --- a/rules/networkmanager.in
> +++ b/rules/networkmanager.in
> @@ -102,6 +102,11 @@ config NETWORKMANAGER_EXAMPLES
> bool
> prompt "install examples for Network Manager"
>
> +config NETWORKMANAGER_SYSTEM_CONNECTIONS
> + bool
> + default y
> + prompt "create /etc/NetworkManagers/system-connections"
> +
> config NETWORKMANAGER_POLKIT
> bool
> depends on BROKEN
> diff --git a/rules/networkmanager.make b/rules/networkmanager.make
> index b9f4befc89c5..0585aead5d4c 100644
> --- a/rules/networkmanager.make
> +++ b/rules/networkmanager.make
> @@ -132,7 +132,9 @@ $(STATEDIR)/networkmanager.targetinstall:
>
> @$(call install_alternative, networkmanager, 0, 0, 0644, /etc/NetworkManager/NetworkManager.conf)
> @$(call install_copy, networkmanager, 0, 0, 0755, /etc/NetworkManager/dispatcher.d/)
> +ifdef NETWORKMANAGER_SYSTEM_CONNECTIONS
> @$(call install_copy, networkmanager, 0, 0, 0755, /etc/NetworkManager/system-connections/)
> +endif
>
> # # unmanage NFS root devices
> @$(call install_alternative, networkmanager, 0, 0, 0755, /usr/lib/init/nm-unmanage.sh)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-29 9:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-14 10:37 [ptxdist] [PATCH] networkmanager: allow not installing system-connections Fabian Pflug
2025-08-29 9:46 ` [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