All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fiona Klute via buildroot <buildroot@buildroot.org>
To: TIAN Yuanhao <tianyuanhao3@163.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/network-manager: remove initrd specific service files
Date: Fri, 19 Jun 2026 01:09:41 +0200	[thread overview]
Message-ID: <516eb520-cd83-477f-aaff-b839e32b3792@gmx.de> (raw)
In-Reply-To: <20260606024011.4645-1-tianyuanhao3@163.com>

Am 06.06.26 um 04:40 schrieb TIAN Yuanhao:
> NetworkManager upstream added initrd-specific service files in 1.54:
> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2089
> 
> These services are intended for use inside an initrd, not a rootfs.
> When present in a rootfs, they conflict with the main NetworkManager
> service since both claim the same D-Bus name
> org.freedesktop.NetworkManager, leading to confusing error messages:
> 
>    systemd[1]: Failed to put bus name to hashmap: File exists
>    systemd[1]: NetworkManager-initrd.service: Two services allocated
>    for the same bus name org.freedesktop.NetworkManager, refusing
>    operation.
> 
> Remove them to avoid these issues.
> 
> Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>

I've merged Yann's patch with your Acked-by, so I've marked this one as 
Superseded.

Thank you,
Fiona

> ---
>   package/network-manager/network-manager.mk | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk
> index 301c1ad43e..2dd40980e7 100644
> --- a/package/network-manager/network-manager.mk
> +++ b/package/network-manager/network-manager.mk
> @@ -191,4 +191,12 @@ define NETWORK_MANAGER_INSTALL_INIT_SYSTEMD
>   
>   endef
>   
> +define NETWORK_MANAGER_REMOVE_INITRD_SERVICES
> +	$(RM) $(TARGET_DIR)/usr/lib/systemd/system/NetworkManager-config-initrd.service
> +	$(RM) $(TARGET_DIR)/usr/lib/systemd/system/NetworkManager-initrd.service
> +	$(RM) $(TARGET_DIR)/usr/lib/systemd/system/NetworkManager-wait-online-initrd.service
> +endef
> +
> +NETWORK_MANAGER_POST_INSTALL_TARGET_HOOKS += NETWORK_MANAGER_REMOVE_INITRD_SERVICES
> +
>   $(eval $(meson-package))

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-06-18 23:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-06  2:40 [Buildroot] [PATCH 1/1] package/network-manager: remove initrd specific service files TIAN Yuanhao
2026-06-15 11:17 ` yann.morin
2026-06-18 23:09 ` Fiona Klute via buildroot [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=516eb520-cd83-477f-aaff-b839e32b3792@gmx.de \
    --to=buildroot@buildroot.org \
    --cc=fiona.klute@gmx.de \
    --cc=tianyuanhao3@163.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.