Skip to content

Commit eab12b6

Browse files
committed
recipes-connectivity: disable NetworkManager-wait-online.service
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>
1 parent 7a76a24 commit eab12b6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Keep NetworkManager enabled, but avoid auto-enabling wait-online at boot.
2+
do_install:append() {
3+
if [ -e ${D}${systemd_system_unitdir}/NetworkManager.service ]; then
4+
sed -i '/^Also=NetworkManager-wait-online\.service[[:space:]]*$/d' \
5+
${D}${systemd_system_unitdir}/NetworkManager.service
6+
fi
7+
}

0 commit comments

Comments
 (0)