<?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>8728</bug_id>
          
          <creation_ts>2015-11-26 00:52:51 +0000</creation_ts>
          <short_desc>wic: Allow to use custom bootloader configuration</short_desc>
          <delta_ts>2015-12-11 18:15:56 +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>deployment</component>
          <version>2.0</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>enhancement</bug_severity>
          <target_milestone>2.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>eduard.bartosh</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>56794</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-26 00:52:51 +0000</bug_when>
    <thetext>When wic creates an image the bootloader configuration is created based on options in the .wks file. If there is need for a very specific configuration, these options are not enough and the configuration file needs to be modified/replaced after the image is created. Examples of these specific needs would be multi-boot system or scripting.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56817</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-11-26 16:10:44 +0000</bug_when>
    <thetext>I&apos;d like to propose alternative solution for this problem - to prepare boot rootfs by bitbake and use wic source plugin to convert it into the partition.

you can see similar example in meta-selftest/recipes-test/images/wic-image-minimal.wks

This way bootloader configuration of any complexity could be handled easily.
There is one limitation of this approach - it works only with EFI booting. I hope it&apos;s not your case though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56906</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-01 18:02:18 +0000</bug_when>
    <thetext>For EFI is a good option to use a recipe to create the boot partition, however the requirements here is to have something that can also work with MBR. Hence the bug. I sent the patches to the ML.

http://lists.openembedded.org/pipermail/openembedded-core/2015-December/113581.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57223</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-12-11 18:15:56 +0000</bug_when>
    <thetext>This bug has been solved by commits:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9773faadfeee0e64fc405e0192f32aa8eca95a76

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f95f729518296177a6280a6e19a0c1433d499710

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=70338732ac7d6cf8a012e6861c316bcbd66e1328

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c59dc3bae09ccb3749539dd5f1ddc12e26591523

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8612f260048fe53f46149708baa6bd1985a4eb9f

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d7baeb5fad2630986556d4af38a2e2c67f7250c2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>