X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl%2Frecipes-core%2Fsystemd%2Fsystemd_%25.bbappend;h=487892d50f4a202dde488fb38f7a2137e262bfba;hb=refs%2Fchanges%2F79%2F10179%2F3;hp=ef926953c09c37b91cfe630775e19a7447647c68;hpb=91f7784cfd26ca7d26e1006d78c067e74c7dc92a;p=AGL%2Fmeta-agl.git diff --git a/meta-agl/recipes-core/systemd/systemd_%.bbappend b/meta-agl/recipes-core/systemd/systemd_%.bbappend index ef926953c..487892d50 100644 --- a/meta-agl/recipes-core/systemd/systemd_%.bbappend +++ b/meta-agl/recipes-core/systemd/systemd_%.bbappend @@ -1,13 +1,25 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI += " file://e2fsck.conf " +SRC_URI += "file://e2fsck.conf \ + ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','file://wired.network','',d)} \ + " -# enable networkd support -PACKAGECONFIG_append_pn-systemd = " networkd" +# enable networkd/resolved support +PACKAGECONFIG_append_pn-systemd = " \ + ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','networkd resolved','',d)} \ +" do_install_append() { # Install /etc/e2fsck.conf to avoid boot stuck by wrong clock time - install -p -D ${WORKDIR}/e2fsck.conf ${D}/etc/e2fsck.conf + install -m 644 -p -D ${WORKDIR}/e2fsck.conf ${D}${sysconfdir}/e2fsck.conf + + if ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','systemd','true','false',d)}; then + # Install DHCP configuration for Ethernet adapters + install -m 644 ${WORKDIR}/wired.network ${D}${sysconfdir}/systemd/network + fi } -FILES_${PN} += " /etc/e2fsck.conf " +FILES_${PN} += "${sysconfdir}/e2fsck.conf " + +# SPEC-737: connmand also has a NTP client which races with systemd-timesyncd +PACKAGECONFIG_remove = "timesyncd"