Skip to content

recipes-connectivity: disable NetworkManager-wait-online.service#344

Closed
DaizhuangBai wants to merge 1 commit into
qualcomm-linux:mainfrom
DaizhuangBai:main
Closed

recipes-connectivity: disable NetworkManager-wait-online.service#344
DaizhuangBai wants to merge 1 commit into
qualcomm-linux:mainfrom
DaizhuangBai:main

Conversation

@DaizhuangBai

@DaizhuangBai DaizhuangBai commented Jun 16, 2026

Copy link
Copy Markdown

Introduce a networkmanager bbappend to disable NetworkManager-wait- online.service.

NetworkManager-wait-online.service is auto-enabled via the "Also=" install hook in NetworkManager.service. However, it blocks startup and significantly increases boot time. Multiple targets have reported this issue, such as iq-615-evk and iq-8275-evk. Remove the install hook during do_install so wait-online is not enabled by default.

Measured boot time improvement on iq-615-evk target:

  • before: ~28s
  • after: ~18s

qli-2.0 GA block issue

@koenkooi

Copy link
Copy Markdown
Contributor

How is this different from #341 ?

@DaizhuangBai

Copy link
Copy Markdown
Author

The issue is same as #341. But I got a mistake to merge the commit into wrynose branch in #341. So I re-raise this PR to merge the commit into main.

Introduce a networkmanager bbappend to disable NetworkManager-wait-
online.service.

NetworkManager-wait-online.service is auto-enabled via the "Also="
install hook in NetworkManager.service. However, it blocks startup
and significantly increases boot time. Multiple targets have reported
this issue, such as iq-615-evk and iq-8275-evk. Remove the install
hook during do_install so wait-online is not enabled by default.

Measured boot time improvement on iq-615-evk target:
- before: ~28s
- after:  ~18s

Signed-off-by: Daizhuang Bai <daizhuang.bai@oss.qualcomm.com>
@ricardosalveti

Copy link
Copy Markdown
Contributor

From the bootup log, there are actually some services that require network-online.target, such as the following:
aktualizr.service
mosquitto.service
rsyslog.service
docker.service

But these services can retry to get network after device bootup, so I think there is no effect on them if we disable NetworkManager-wait-online.service

But that is the entire point, these services are depending on network-online.target, and that is why I said that this is by design.

If we want to unblock certain services, then we should see if we could make them not depend on network-online.target instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants