<?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>1706</bug_id>
          
          <creation_ts>2011-11-01 01:33:19 +0000</creation_ts>
          <short_desc>disabling package management is not described</short_desc>
          <delta_ts>2013-05-08 11:07:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Quick Start</product>
          <component>quick-start</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit/cgit.cgi/yocto-docs/commit/?id=51eb79b88794beaefcb88a4408714a88c9126b2b</bug_file_loc>
          <status_whiteboard>8 May 2013</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frans Meulenbroeks">fransmeulenbroeks</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17016</commentid>
    <comment_count>0</comment_count>
    <who name="Frans Meulenbroeks">fransmeulenbroeks</who>
    <bug_when>2011-11-01 01:33:19 +0000</bug_when>
    <thetext>apparently package-management is an image feature that can be used to disable package management but this IMAGE_FEATURE is nowhere described in 1.1 of the reference manual.

Or more generic:
it would be nice if it was described how to create stand alone images not requiring any package management within the image. 
To me this seems not an uncommon situation in the embedded world</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17646</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2011-12-14 16:28:12 +0000</bug_when>
    <thetext>Here is some additional information for this bug from an IRC chat from Richard.  I will use this information next visit on this bug.  Saving it here for now. 

(02:10:03 PM) RP: scottrif: The core-image-minimal does this iirc and you can see the &apos;magic&apos; line if you look at its .bb file
(02:10:31 PM) RP: scottrif: (which is exactly how I&apos;d look it up)
(02:13:16 PM) scottrif: RP:  that would be core-image-minimal.bb in poky/meta/recipes-core/images correct?  Magic line is ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files ; &quot;
(02:13:25 PM) RP: scottrif: yes 
(02:17:42 PM) scottrif: RP:  I am looking at http://bugzilla.pokylinux.org/show_bug.cgi?id=1706 and trying to determine if what I am seeing in core-image-minimal.bb is the generic way to create a stand-alone image not requiring any package management.  Is this statement in core-image-minimal.bb the same one that could be used for any stand-alone image?
(02:55:59 PM) RP: scottrif: yes, add that to any image or configureation and it will remove packaging</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17655</commentid>
    <comment_count>2</comment_count>
    <who name="Frans Meulenbroeks">fransmeulenbroeks</who>
    <bug_when>2011-12-14 23:56:39 +0000</bug_when>
    <thetext>I am not sure if the solution from Richard is sufficient.
For lean images one would also make sure that the package manager itself and whatever it needs is removed.
E.g. for opkg I feel /usr/bin/opkg and /usr/lib/*opkg* should be removed, not sure if that is the case right now (and cannot test it at the moment).

(or, in other words, if opkg was used intermediately,
find / | grep opkg 
probably should result in no files found)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20850</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-24 22:55:52 +0000</bug_when>
    <thetext>Reassigned the category to other.  Needs to be assigned to the &quot;Development Manual&quot; when that category is set up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29870</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-02-15 20:46:50 +0000</bug_when>
    <thetext>Richard, 

Here is a vintage bug....  Do you have any comments on Frans&apos; last issue?  Because I can take the information from our IRC chat in my comment and talk about creating a stand-alone image that has packaging removed.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32817</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-01 15:56:28 +0000</bug_when>
    <thetext>If you remove package-management from IMAGE_FEATURES, it will remove the package manager dependencies as well as removing the package manager from the rootfs.

For example core-image-sato has &quot;package-management&quot; in IMAGE_FEATURES, core-image-minimal does not and hence a package-manager is not present.

If you combine this with the ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files ;&quot; item, this addresses Frans&apos; concern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32919</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-05-07 14:45:25 +0000</bug_when>
    <thetext>I created a small section that is part of the bigger section that discusses ways to reduce the image and rootfs to get very small systems.  The section is at http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#remove-package-management-requirements.

The section needs reviewed.  I added Darren to the CC list so he could have input as it affects the section he help create.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32921</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-05-07 15:15:44 +0000</bug_when>
    <thetext>Applied review comments from Richard Purdie and also added the new technique to reduce the image into the parent section&apos;s introductory paragraphs.

Newest version is http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#remove-package-management-requirements.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32936</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-08 08:49:09 +0000</bug_when>
    <thetext>&quot;One way to reduce the size of the kernel&quot; -&gt; &quot;One way to reduce the size of the image&quot;

&quot;to remove packaging files: &quot; -&gt; &quot;to remove package management data files: 

&quot;its dependencies&quot; -&gt; &quot;its unique dependencies&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32943</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-05-08 10:44:26 +0000</bug_when>
    <thetext>I applied the three edits suggested by Richard in the previous comment.  The new version is published to http://www.yoctoproject.org/docs/1.5/dev-manual/dev-manual.html#remove-package-management-requirements.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32945</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-05-08 11:07:46 +0000</bug_when>
    <thetext>With Scott&apos;s changes I think we can resolve this now...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>