<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Hello,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Building an image with Yocto Sumo throws out some warning messages during do.rootfs. Although I'm partially clear that update-alternatives has something to do with these warnings, but following the instructions in the warning and placing the packages in <span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace;color:rgb(0,0,0);font-size:1em">pkg_postinst_ontarget_${PN} () </span>does not resolve the issue.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">What am I missing here and what is the ideal solution to avoid these warnings?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Here is my <b><u>BUILD INFORMATION</u></b></div><div class="gmail_default" style="font-family:georgia,serif"><b><u><br></u></b></div><div class="gmail_default" style="font-family:georgia,serif"><div class="gmail_default" style="">Build Configuration:</div><div class="gmail_default" style="">BB_VERSION      = "1.37.0"</div><div class="gmail_default" style="">BUILD_SYS      = "x86_64-linux"</div><div class="gmail_default" style="">NATIVELSBSTRING   = "universal-4.8"</div><div class="gmail_default" style="">TARGET_SYS      = "arm-poky-linux-gnueabi"</div><div class="gmail_default" style="">MACHINE       = "arm-cortex-a8"</div><div class="gmail_default" style="">DISTRO        = "poky"</div><div class="gmail_default" style="">DISTRO_VERSION    = "2.5"</div><div class="gmail_default" style="">TUNE_FEATURES    = "arm armv7a vfp neon callconvention-hard cortexa8"</div><div class="gmail_default" style="">TARGET_FPU      = "hard"</div><div class="gmail_default" style="">meta-custombsp-ti     </div><div class="gmail_default" style="">meta         </div><div class="gmail_default" style="">meta-poky       </div><div class="gmail_default" style="">meta-yocto-bsp    </div><div class="gmail_default" style="">meta-custom-common   = "<unknown>:<unknown>"</div><div class="gmail_default" style="">meta-oe       = "master:45ee3c0e98bd3ed81419aaeae1e7324e486161a2"</div></div><div class="gmail_default" style=""><table style="font-family:georgia,serif;font-size:1em;color:black;line-height:1.4em" width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter"><td style="padding:0em;vertical-align:top;line-height:1.4em"><pre style="font-size:1em;margin:10px 10px 0px;width:auto;padding:0px"><br></pre><pre style="font-size:1em;margin:10px 10px 0px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">WARNING: custom-image-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of ['vsftpd', 'dropbear', 'chrony'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">If deferring to first boot wasn't the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">Details of the failure are in /home/build_arm-cortex-a8/tmp/work/arm_cortex_a8-poky-linux-gnueabi/custom-image/1.0-r0/temp/log.do_rootfs.</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">WARNING: custom-image-1.0-r0 do_rootfs: [log_check] abkdkj-image: found 4 warning messages in the logfile:</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">[log_check] warning: %post(vsftpd-3.0.3-r0.cortexa8hf_neon) scriptlet failed, exit status 1</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">[log_check] warning: %post(dropbear-2017.75-r0.cortexa8hf_neon) scriptlet failed, exit status 1</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">[log_check] warning: %post(chrony-3.1-r0.cortexa8hf_neon) scriptlet failed, exit status 1</span></pre>
</td>
</tr>
<tr id="gmail-m_4860206560686575695gmail-syntaxplugin_code_and_gutter">
<td style="padding:0em;vertical-align:top;line-height:1.4em">
<pre style="font-size:1em;margin:0px 10px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace">[log_check] WARNING: Intentionally failing postinstall scriptlets of ['vsftpd', 'dropbear', 'chrony'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
</span></pre><pre style="font-size:1em;margin:0px 10px 10px;width:auto;padding:0px"><span style="font-family:Consolas,"Bitstream Vera Sans Mono","Courier New",Courier,monospace"><br></span></pre><pre style="font-size:1em;margin:0px 10px 10px;width:auto;padding:0px"><br></pre></td></tr></tbody></table><pre style="color:rgb(0,0,0);font-size:1em;margin:0px 10px 10px;width:auto;padding:0px"><font face="georgia, serif">Thanks,</font></pre><pre style="color:rgb(0,0,0);font-size:1em;margin:0px 10px 10px;width:auto;padding:0px"><font face="georgia, serif">Dhanush</font></pre></div><div><div dir="ltr" class="gmail-m_4860206560686575695gmail_signature"><div dir="ltr"></div></div></div></div></div>