<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11712</bug_id>
          
          <creation_ts>2017-06-23 16:39:19 +0000</creation_ts>
          <short_desc>poky-tiny core-image-tiny-initramfs WIC image is not built correctly for meta-intel</short_desc>
          <delta_ts>2017-12-06 17:28:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro Hernandez">alejandro.hernandez</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>libertad.gonzalez.de.la.cruz</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>74517</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2017-06-23 16:39:19 +0000</bug_when>
    <thetext>When building poky-tiny (core-image-tiny-initramfs) for an intel MACHINE the resulting WIC image does not boot correctly, it boots up until a login prompt is shown where the user cant login, which is wrong, since core-image-tiny-initramfs should drop to shell way before getting to the login prompt.

MACHINE=&quot;intel-corei7-64&quot;
bitbake core-image-tiny-initramfs

The resulting image is about 97M which does not make sense since a correct image should be about ~30M

l tmp/deploy/images/intel-corei7-64/ | grep wic
-rw-r--r-- 2 aehernan aehernan  97M Jun 22 16:06 core-image-tiny-initramfs-intel-corei7-64-20170622210600.rootfs.wic
-rw-r--r-- 2 aehernan aehernan  29M Jun 22 16:11 core-image-tiny-initramfs-intel-corei7-64-20170622211104.rootfs.wic

This is being caused because WIC is using an incorrect WKS file to build the image, when creating the image manually with wic, one can obtain the correct image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74520</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2017-06-23 16:56:06 +0000</bug_when>
    <thetext>This is where the issue happens:

# $WKS_FILE [3 operations]#   
set? /home/aehernan/yocto/poky/meta-intel/conf/machine/intel-corei7-64.conf:37
#     &quot;${@bb.utils.contains_any(&quot;EFI_PROVIDER&quot;, &quot;systemd-boot rmc-boot&quot;, &quot;systemd-bootdisk.wks&quot;, &quot;mkefidisk.wks&quot;, d)}&quot;
#   set /home/aehernan/yocto/poky/meta/classes/image_types_wic.bbclass:8
#     [_defaultval] &quot;${IMAGE_BASENAME}.${MACHINE}.wks&quot;
#   override[poky-tiny]:set? /home/aehernan/yocto/poky/meta-intel/common/recipes-core/images/core-image-tiny-initramfs.bbappend:14
#     &quot;${@wks_intel(d)}&quot;
# pre-expansion value:
#   &quot;${@bb.utils.contains_any(&quot;EFI_PROVIDER&quot;, &quot;systemd-boot rmc-boot&quot;, &quot;systemd-bootdisk.wks&quot;, &quot;mkefidisk.wks&quot;, d)}&quot;
WKS_FILE=&quot;systemd-bootdisk.wks&quot;

This is indicating that WKS_FILE was assigned the value of &quot;systemd-bootdisk.wks&quot;
where it should have been assigned whatever was returned from &quot;${@wks_intel(d)}&quot;

So, for some reason the override[poky-tiny] stopped working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74670</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2017-06-30 03:08:20 +0000</bug_when>
    <thetext>The override for poky-tiny is working correctly, it seems that you can&apos;t assign DISTRO ?= &quot;poky-tiny&quot;, it has to be set as DISTRO = &quot;poky-tiny&quot;.

So the DISTRO was being assinged incorrectly, hence why DISTROOVERRIDES wasnt working.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>