<?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>11044</bug_id>
          
          <creation_ts>2017-02-10 14:52:59 +0000</creation_ts>
          <short_desc>wic should support multiple boot labels such as boot and install targets</short_desc>
          <delta_ts>2017-03-31 22:57:55 +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>Scripts and Tools</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>california.l.sullivan</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70618</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-10 14:52:59 +0000</bug_when>
    <thetext>Currently wic only supports one bootloader label or target, which is just to boot the media while the current live/hddimg/iso bbclass can support both a boot and install label.

WIC should have the flexibility to add an alternate label and target script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70619</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-10 14:56:56 +0000</bug_when>
    <thetext>WIC already supports this. It can be done by using custom boot loader configs (--configfile bootloader option in .wks)

That&apos;s much better way than hardcoding bootloader targets in wic code, I believe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70739</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2017-02-16 15:38:23 +0000</bug_when>
    <thetext>Saul, give an example please</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70744</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2017-02-16 15:51:30 +0000</bug_when>
    <thetext>Is there an example WKS file that has both boot and install labels?  If not then we should have one.  As mentioned before, in order to replace live/hddimg we need the same functionality that is currently provided by live/hddimg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70759</commentid>
    <comment_count>4</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-02-16 18:05:11 +0000</bug_when>
    <thetext>there is an example configuration file and .wks file:
 scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
 scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks

They&apos;re not using 2 boot largets, so I&apos;m going to add &apos;install&apos; target there and test if it works as expected.

It would be good to remove all hardcoded boot loader configurations from the wic plugins code and replace them with config files. That would simplify the code and increase maintainability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71080</commentid>
    <comment_count>5</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-06 11:43:44 +0000</bug_when>
    <thetext>The patchset http://lists.openembedded.org/pipermail/openembedded-core/2017-February/133287.html has been merged to poky master.

Note, that patchset doesn&apos;t cover userspace changes that need to be addressed to make the solution fully working. It only implements support of multiple targets in the wic code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>