<?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>229</bug_id>
          
          <creation_ts>2010-08-25 20:24:26 +0000</creation_ts>
          <short_desc>no postinst is invoked at the 1st boot of target image</short_desc>
          <delta_ts>2010-12-21 06:07:22 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Tian">kevin.tian</reporter>
          <assigned_to name="Kevin Tian">kevin.tian</assigned_to>
          <cc>josh</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9397</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-25 20:24:26 +0000</bug_when>
    <thetext>This causes lots of boot issues, and the reason should come from Josh&apos;s recent change:

commit 1d0757f16beb31551733d9d755d72337ccda9642
Author: Joshua Lock &lt;josh@linux.intel.com&gt;
Date:   Tue Aug 24 11:32:01 2010 +0100

    opkg: use var for state files, not libdir

    Fixes [BUGID #221]

    Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;

After a quick glimps, some class files still remain using old path, which is the reason for the mess here.

I&apos;ll go for a quick look whether it can be easily fixed. If not, then leave to Josh who has more knowledge her.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9405</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-25 22:04:04 +0000</bug_when>
    <thetext>I&apos;ve sent out a pull request for this bug. Tested on x86 and arm target.

22db36b5dfbd3002d990d512ea33fd3359ef1d94 in http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=tk/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9418</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-08-26 01:22:57 +0000</bug_when>
    <thetext>Thanks Kevin, I merged your fix and also an extra one for meta-toolchain. 

8ea7fa6d4c7734da6034d44f8b6d78d2993f1949
opkg: finalize the change to var directory

commit 1d0757f16beb31551733d9d755d72337ccda9642 changes opkg run state from
/usr/lib/opkg to /var/lib/opkg, which however is incomplete and still many
important information is kept under old directory including postinst methods.
This makes latest boot into a mess.

So finalize this movement to /var here. Fix [BUGID #229]

e10703aa5b008e5bd4ba00606e633281759496fe
meta-toolchain: update to reflect opkg state directory move</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9419</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-26 01:27:26 +0000</bug_when>
    <thetext>thanks Josh. I didn&apos;t note meta-toolchain. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9461</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-08-29 22:42:41 +0000</bug_when>
    <thetext>I have verified this bug is fixed now, by checking the boot message of target message. Now postinst methods are indeed invoked.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>