<?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>10012</bug_id>
          
          <creation_ts>2016-07-24 16:10:25 +0000</creation_ts>
          <short_desc>Suggested rewriting of the (currently semi-nonsensical) INITRAMFS_IMAGE glossary entry</short_desc>
          <delta_ts>2016-08-01 18:57:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>2.2</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>01 August 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64397</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-24 16:10:25 +0000</bug_when>
    <thetext>Hello,

The current glossary entry for INITRAMFS_IMAGE is difficult to understand. The following part doesn&apos;t even make any sense:

  The following example, which is set in the local.conf configuration file,
  causes a separate recipe to be created that results in an initramfs image
  named core-image-sato-initramfs.bb to be created:
 
      INITRAMFS_IMAGE = &quot;core-image-minimal-initramfs&quot;
                     
No recipe is created (but an image), and the image that&apos;s created is not called core-image-sato-initramfs.bb (that&apos;s a recipe name).


Since it&apos;s in pretty bad shape at the moment, I suggest rewriting the entire thing as follows:

  INITRAMFS_IMAGE:
    Specifies the ([PROVIDES]) name of an image recipe that is used to build an
    initial RAM disk (initramfs) image. An initramfs provides a temporary root
    filesystem used for early system initialization (e.g. loading of modules
    needed to locate and mount the &quot;real&quot; root filesystem). The recipe is added
    as a dependency of the root filesystem recipe (e.g. core-image-sato).
  
    See core-image-sato-initramfs.bb for an example initramfs image recipe. Note
    that the initramfs image recipe should set [IMAGE_FSTYPES] to
    [INITRAMFS_FSTYPES].
    
    More information can be found in local.conf.sample.extended. You can also
    reference [image.bbclass] and [kernel.bbclass] to see how the variable is
    used.
    
    If INITRAMFS_IMAGE is empty (the default), then no initramfs is built.


The following could be added to the end of the entry for INITRAMFS_FSTYPES as well:

    The default value of this variable, set in bitbake.conf, is &quot;cpio.gz&quot;. The
    Linux kernel&apos;s initramfs mechanism (as opposed to the earlier initrd
    mechanism) expects an (optionally compressed) cpio archive.


On thing that&apos;s still confusing is how you&apos;re supposed to deal with INITRAMFS_IMAGE when building multiple images. Maybe each image recipe is meant to set INITRAMFS_IMAGE separately in that case. Maybe someone could clarify that separately though.

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64400</commentid>
    <comment_count>1</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-24 18:44:07 +0000</bug_when>
    <thetext>Updated version (INITRAMFS_FSTYPES update stays the same):

  INITRAMFS_IMAGE:
    Specifies the ([PROVIDES]) name of an image recipe that is used to build an
    initial RAM disk (initramfs) image. An initramfs provides a temporary root
    filesystem used for early system initialization, e.g. loading of modules
    needed to locate and mount the &quot;real&quot; root filesystem. The specified recipe
    is added as a dependency of the root filesystem recipe (e.g.
    core-image-sato).
  
    See core-image-sato-initramfs.bb for an example initramfs image recipe. Note
    that the initramfs image recipe should set [IMAGE_FSTYPES] to
    [INITRAMFS_FSTYPES].
    
    More information can be found in [local.conf.sample.extended]. You can also
    reference [image.bbclass] and [kernel.bbclass] to see how the variable is
    used.
    
    If INITRAMFS_IMAGE is empty (the default), then no initramfs is built.

    See also [INITRAMFS_IMAGE_BUNDLE], which allows the generated image to be
    bundled inside the kernel image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64673</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 18:27:26 +0000</bug_when>
    <thetext>Hi Ulf, 

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_IMAGE for the INITRAMFS_IMAGE change.

For INITRAMF_FSTYPES, see http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_FSTYPES.  One question I have for that change is the reference to the &quot;initrd mechanism&quot;.  I would like to spell that out and also &quot;linkify&quot; it.  You referenced it as something earlier, which we don&apos;t want to do.  It would be best to actually provide a link if a target exists.

thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64675</commentid>
    <comment_count>3</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-29 19:11:18 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Hi Ulf, 
&gt; 
&gt; See
&gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; INITRAMFS_IMAGE for the INITRAMFS_IMAGE change.

&quot;See the core-image-sato-initramfs.bb recipe, which is created, for an example recipe&quot; sounds weird. No recipes are created by INITRAMFS_IMAGE. I think this would better:

  See core-image-sato-initramfs.bb for an example initramfs recipe. To
  select this recipe to provide the initramfs, you would set
  INITRAMFS_IMAGE to &quot;core-image-sato-initramfs&quot;.
 
&gt; For INITRAMF_FSTYPES, see
&gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; INITRAMFS_FSTYPES.  One question I have for that change is the reference to
&gt; the &quot;initrd mechanism&quot;.  I would like to spell that out and also &quot;linkify&quot;
&gt; it.  You referenced it as something earlier, which we don&apos;t want to do.  It
&gt; would be best to actually provide a link if a target exists.

Not sure if there&apos;s a good place in the manual to link for for initrd. initrd and initramfs are two different mechanisms in the kernel to provide an early root filesystem during boot. If wiki links are okay, then https://en.wikipedia.org/wiki/Initrd would be a good one.

Confusingly, &quot;initrd&quot; is sometimes used to refer to any kind of early root filesystem. This is probably a leftover from when initrd was the only mechanism there was, before initramfs.

Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64680</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 21:02:36 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Hi Ulf, 
&gt; &gt; 
&gt; &gt; See
&gt; &gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; &gt; INITRAMFS_IMAGE for the INITRAMFS_IMAGE change.
&gt; 
&gt; &quot;See the core-image-sato-initramfs.bb recipe, which is created, for an
&gt; example recipe&quot; sounds weird. No recipes are created by INITRAMFS_IMAGE. I
&gt; think this would better:
&gt; 
&gt;   See core-image-sato-initramfs.bb for an example initramfs recipe. To
&gt;   select this recipe to provide the initramfs, you would set
&gt;   INITRAMFS_IMAGE to &quot;core-image-sato-initramfs&quot;.

Ulf - I took a guess that maybe the recipe was created.  I dug all through the poky repository and could not find an existing &quot;core-image-sato-initramfs.bb&quot; file anywhere.  Do you know where it is?  If you do, I can be more specific on where the user can find it.  http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_IMAGE

&gt;  
&gt; &gt; For INITRAMF_FSTYPES, see
&gt; &gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; &gt; INITRAMFS_FSTYPES.  One question I have for that change is the reference to
&gt; &gt; the &quot;initrd mechanism&quot;.  I would like to spell that out and also &quot;linkify&quot;
&gt; &gt; it.  You referenced it as something earlier, which we don&apos;t want to do.  It
&gt; &gt; would be best to actually provide a link if a target exists.
&gt; 
&gt; Not sure if there&apos;s a good place in the manual to link for for initrd.
&gt; initrd and initramfs are two different mechanisms in the kernel to provide
&gt; an early root filesystem during boot. If wiki links are okay, then
&gt; https://en.wikipedia.org/wiki/Initrd would be a good one.

Ulf - thanks.  I updated that last paragraph to include the full spelling since it is an initial use and to include that link into the wiki.  See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_FSTYPES

&gt; 
&gt; Confusingly, &quot;initrd&quot; is sometimes used to refer to any kind of early root
&gt; filesystem. This is probably a leftover from when initrd was the only
&gt; mechanism there was, before initramfs.
&gt; 
&gt; Cheers,
&gt; Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64684</commentid>
    <comment_count>5</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-29 21:22:59 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; Hi Ulf, 
&gt; &gt; &gt; 
&gt; &gt; &gt; See
&gt; &gt; &gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; &gt; &gt; INITRAMFS_IMAGE for the INITRAMFS_IMAGE change.
&gt; &gt; 
&gt; &gt; &quot;See the core-image-sato-initramfs.bb recipe, which is created, for an
&gt; &gt; example recipe&quot; sounds weird. No recipes are created by INITRAMFS_IMAGE. I
&gt; &gt; think this would better:
&gt; &gt; 
&gt; &gt;   See core-image-sato-initramfs.bb for an example initramfs recipe. To
&gt; &gt;   select this recipe to provide the initramfs, you would set
&gt; &gt;   INITRAMFS_IMAGE to &quot;core-image-sato-initramfs&quot;.
&gt; 
&gt; Ulf - I took a guess that maybe the recipe was created.  I dug all through
&gt; the poky repository and could not find an existing
&gt; &quot;core-image-sato-initramfs.bb&quot; file anywhere.  Do you know where it is?  If
&gt; you do, I can be more specific on where the user can find it. 
&gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; INITRAMFS_IMAGE
&gt; 

Ops... it&apos;s supposed to be core-image-minimal-initramfs(.bb). The fact that the old version mentions both core-image-sato-initramfs and core-image-minimal-initramfs confused me. Sorry about that.

&gt; &gt;  
&gt; &gt; &gt; For INITRAMF_FSTYPES, see
&gt; &gt; &gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; &gt; &gt; INITRAMFS_FSTYPES.  One question I have for that change is the reference to
&gt; &gt; &gt; the &quot;initrd mechanism&quot;.  I would like to spell that out and also &quot;linkify&quot;
&gt; &gt; &gt; it.  You referenced it as something earlier, which we don&apos;t want to do.  It
&gt; &gt; &gt; would be best to actually provide a link if a target exists.
&gt; &gt; 
&gt; &gt; Not sure if there&apos;s a good place in the manual to link for for initrd.
&gt; &gt; initrd and initramfs are two different mechanisms in the kernel to provide
&gt; &gt; an early root filesystem during boot. If wiki links are okay, then
&gt; &gt; https://en.wikipedia.org/wiki/Initrd would be a good one.
&gt; 
&gt; Ulf - thanks.  I updated that last paragraph to include the full spelling
&gt; since it is an initial use and to include that link into the wiki.  See
&gt; http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-
&gt; INITRAMFS_FSTYPES

Looks good to me!

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64695</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 23:43:50 +0000</bug_when>
    <thetext>Thanks Ulf, 

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_IMAGE.  So the core-image-minimal-initramfs.bb recipe is just the example.  The rest of the paragraph does apply to the core-image-sato-initramfs.bb recipe correct?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64698</commentid>
    <comment_count>7</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-07-30 12:24:05 +0000</bug_when>
    <thetext>One typo left:

  To select this recipe to provide the initramfs, set INITRAMFS_IMAGE
  to &quot;core-image-sato-initramfs&quot;. 

should be

  To select this recipe to provide the initramfs, set INITRAMFS_IMAGE
  to &quot;core-image-minimal-initramfs&quot;.

Looks fine otherwise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64735</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 18:23:27 +0000</bug_when>
    <thetext>Ulf, 

Got it.  See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-INITRAMFS_IMAGE for the change. 

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64740</commentid>
    <comment_count>9</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-08-01 18:45:49 +0000</bug_when>
    <thetext>Looks good to me now.

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64743</commentid>
    <comment_count>10</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 18:57:51 +0000</bug_when>
    <thetext>Thanks Ulf, 

Resetting to RESOLVED and placing the doc flag into &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>