<div dir="ltr">This doesn&#39;t seem to work correctly for MACHINEs with empty SERIAL_CONSOLE, because with empty SERIAL_CONSOLE there is no systemd-serialgetty package (because it&#39;s also empty) and the build fails with:<div><br></div><div>Collected errors:<br></div><div><div> * calculate_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-boot:</div><div> *      systemd-serialgetty *</div><div> * opkg_solver_install: Cannot install package packagegroup-core-boot.</div></div><div><br></div><div>If you&#39;re setting <span style="font-size:12.8px">NO_RECOMMENDATIONS to &quot;1&quot;, then you should expect that some recommended functionality will be missing, no?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 10:07 AM, Chen Qi <span dir="ltr">&lt;<a href="mailto:Qi.Chen@windriver.com" target="_blank">Qi.Chen@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Set NO_RECOMMENDATIONS to &quot;1&quot;, build and start a systemd image, and we<br>
could not get serial getty spawned, thus causing the user not able to<br>
login via serial port.<br>
<br>
E.g.<br>
MACHINE=qemux86-64 bitbake core-image-minimal<br>
runqemu qemux86-64 nographic<br>
<br>
And we cannot login onto the system.<br>
<br>
Move util-linux-agetty and systemd-serialgetty (determined by PACKAGECONFIG)<br>
from RRECOMMENDS to RDEPENDS to fix the above problem.<br>
<br>
Signed-off-by: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
---<br>
 meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">syst<wbr>emd_234.bb</a> | 8 ++++----<br>
 1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a> b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
index 2736f38..2695e15 100644<br>
--- a/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
+++ b/meta/recipes-core/systemd/<a href="http://systemd_234.bb" rel="noreferrer" target="_blank">sy<wbr>stemd_234.bb</a><br>
@@ -492,13 +492,13 @@ FILES_${PN} = &quot; ${base_bindir}/* \<br>
<br>
 FILES_${PN}-dev += &quot;${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.<wbr>systemd&quot;<br>
<br>
-RDEPENDS_${PN} += &quot;kmod dbus util-linux-mount udev (= ${EXTENDPKGV})&quot;<br>
+RDEPENDS_${PN} += &quot;kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) util-linux-agetty&quot;<br>
+RDEPENDS_${PN} += &quot;${@bb.utils.contains(&#39;<wbr>PACKAGECONFIG&#39;, &#39;serial-getty-generator&#39;, &#39;&#39;, &#39;systemd-serialgetty&#39;, d)}&quot;<br>
 RDEPENDS_${PN} += &quot;volatile-binds update-rc.d&quot;<br>
<br>
-RRECOMMENDS_${PN} += &quot;${@bb.utils.contains(&#39;<wbr>PACKAGECONFIG&#39;, &#39;serial-getty-generator&#39;, &#39;&#39;, &#39;systemd-serialgetty&#39;, d)} \<br>
-                      systemd-extra-utils \<br>
+RRECOMMENDS_${PN} += &quot;systemd-extra-utils \<br>
                       systemd-compat-units udev-hwdb \<br>
-                      util-linux-agetty  util-linux-fsck e2fsprogs-e2fsck \<br>
+                      util-linux-fsck e2fsprogs-e2fsck \<br>
                       kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \<br>
                       os-release \<br>
 &quot;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.1<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>