diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-core/systemd/systemd_%.bbappend index 4c28313..8ea681a 100644 --- a/recipes-core/systemd/systemd_%.bbappend +++ b/recipes-core/systemd/systemd_%.bbappend @@ -1,2 +1,9 @@ PACKAGECONFIG_remove = "nss-resolve resolved" ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}" + + +# The only reason for this line is to remove os-release from "dependencies" of systemd +# Having this dependency leads to a rebuild of systemd when os-release is rebuilt, +# even when the recommendations are excluded. +# It may not be required with future releases of yocto. +RRECOMMENDS_${PN}_remove = "os-release"