diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.56.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.56.0.bb index f9fc9f3966..b04ad90738 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.56.0.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.56.0.bb @@ -311,4 +311,9 @@ do_install:append() { if ${@bb.utils.contains('PACKAGECONFIG','dhcpcd','true','false',d)}; then install -Dm 0644 ${UNPACKDIR}/enable-dhcpcd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-dhcpcd.conf fi + + # Don't ship initrd specific services into rootfs to avoid the conflict with the main services + rm -f ${D}${systemd_system_unitdir}/NetworkManager-config-initrd.service + rm -f ${D}${systemd_system_unitdir}/NetworkManager-initrd.service + rm -f ${D}${systemd_system_unitdir}/NetworkManager-wait-online-initrd.service }