<?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>11819</bug_id>
          
          <creation_ts>2017-07-21 13:32:25 +0000</creation_ts>
          <short_desc>multiubi and container rootfs is not being created</short_desc>
          <delta_ts>2017-07-28 10:47:58 +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>OE-Core</product>
          <component>core</component>
          <version>2.4</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</target_milestone>
          
          <blocked>10745</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>75223</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-21 13:32:25 +0000</bug_when>
    <thetext>when using IMAGE_FSTYPES += &quot; multiubi&quot; the &quot;*.rootfs.multiubi&quot; file is not being created. 

Steps: 

1. Add the following variables to &quot;conf/local.conf&quot;
IMAGE_FSTYPES += &quot;multiubi&quot;
2. Compile
$ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: &quot;build/tmp/deploy/images/&lt;MACHINE&gt;/core-image-minimal-&lt;MACHINE&gt;.multiubi&quot;

Actual result:
The compilation image process is completed successfully but &quot;build/tmp/deploy/images/&lt;MACHINE&gt;/core-image-minimal-&lt;MACHINE&gt;.multiubi&quot; is not being created. 


NOTE:
multiubi is listed as a valid image type by: 

    $ bitbake -e core-image-minimal |grep ^IMAGE_TYPES=</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75224</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-07-21 14:06:46 +0000</bug_when>
    <thetext>Also apply when using IMAGE_FSTYPES += &quot;container&quot;,  the &quot;*.rootfs.container&quot; file is not being created.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75383</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-07-28 10:47:58 +0000</bug_when>
    <thetext>1. More additions to local.conf are required to produce multiubi image

Here is an example:

IMAGE_FSTYPES += &quot;multiubi&quot;
MULTIUBI_BUILD ?= &quot;normal large&quot;
export MKUBIFS_ARGS_normal = &quot;-F -m 2048 -e 124KiB -c 1912 -x zlib&quot;
export UBINIZE_ARGS_normal = &quot;-m 2048 -p 128KiB -s 2048&quot;
export MKUBIFS_ARGS_large = &quot;-F -m 4096 -e 248KiB -c 8124 -x zlib&quot;
export UBINIZE_ARGS_large = &quot;-m 4096 -p 256KiB -s 4096&quot;

with above 6 lines in local.conf &apos;bitbake core-image-minimal&apos; produces set of expected images just fine:

$ ls -la tmp/deploy/images/qemux86-64/ |grep ubi
-rw-r--r-- 2 ed users  8126464 Jul 28 13:12 core-image-minimal-qemux86-64-20170728093839_large.rootfs.ubi
-rw-r--r-- 2 ed users  7364608 Jul 28 13:12 core-image-minimal-qemux86-64-20170728093839_large.rootfs.ubifs
-rw-r--r-- 2 ed users  6422528 Jul 28 13:12 core-image-minimal-qemux86-64-20170728093839_normal.rootfs.ubi
-rw-r--r-- 2 ed users  5967872 Jul 28 13:12 core-image-minimal-qemux86-64-20170728093839_normal.rootfs.ubifs
lrwxrwxrwx 2 ed users       61 Jul 28 13:12 core-image-minimal-qemux86-64_large.ubi -&gt; core-image-minimal-qemux86-64-20170728093839_large.rootfs.ubi
lrwxrwxrwx 2 ed users       63 Jul 28 13:12 core-image-minimal-qemux86-64_large.ubifs -&gt; core-image-minimal-qemux86-64-20170728093839_large.rootfs.ubifs
lrwxrwxrwx 2 ed users       62 Jul 28 13:12 core-image-minimal-qemux86-64_normal.ubi -&gt; core-image-minimal-qemux86-64-20170728093839_normal.rootfs.ubi
lrwxrwxrwx 2 ed users       64 Jul 28 13:12 core-image-minimal-qemux86-64_normal.ubifs -&gt; core-image-minimal-qemux86-64-20170728093839_normal.rootfs.ubifs
-rw-r--r-- 2 ed users      289 Jul 28 13:12 ubinize_large-core-image-minimal-qemux86-64-20170728093839.cfg
-rw-r--r-- 2 ed users      290 Jul 28 13:12 ubinize_normal-core-image-minimal-qemux86-64-20170728093839.cfg


2. My guess is that building container images doesn&apos;t produce rootfs.container. This is covered by containerimage test which passes on current master:

$ oe-selftest -r containerimage
2017-07-28 13:22:40,790 - oe-selftest - INFO - Adding layer libraries:
2017-07-28 13:22:40,790 - oe-selftest - INFO - 	/home/ed/git/yocto/poky/meta/lib
2017-07-28 13:22:40,791 - oe-selftest - INFO - 	/home/ed/git/yocto/poky/meta-yocto-bsp/lib
2017-07-28 13:22:40,791 - oe-selftest - INFO - 	/home/ed/git/yocto/poky/meta-selftest/lib
2017-07-28 13:22:40,792 - oe-selftest - INFO - Running bitbake -p
2017-07-28 13:23:32,153 - oe-selftest - INFO - test_expected_files (containerimage.ContainerImageTests) ... ok
2017-07-28 13:23:32,154 - oe-selftest - INFO - 
2017-07-28 13:23:32,154 - oe-selftest - INFO - ----------------------------------------------------------------------
2017-07-28 13:23:32,154 - oe-selftest - INFO - Ran 1 test in 38.096s
2017-07-28 13:23:32,154 - oe-selftest - INFO - 
2017-07-28 13:23:32,154 - oe-selftest - INFO - OK
2017-07-28 13:23:32,154 - oe-selftest - INFO - RESULTS:
2017-07-28 13:23:32,154 - oe-selftest - INFO - RESULTS - containerimage.ContainerImageTests.test_expected_files - Testcase 1619: PASSED
2017-07-28 13:23:32,155 - oe-selftest - INFO - SUMMARY:
2017-07-28 13:23:32,155 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 38.096s
2017-07-28 13:23:32,155 - oe-selftest - INFO - oe-selftest - OK - All required tests passed

Please, look at the test case to get more details.

NOTE: This looks like 2 absolutely unrelated issues to me and shouldn&apos;t be put in one bug. Please, consider to create one bug per issue next time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>