<?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>8433</bug_id>
          
          <creation_ts>2015-10-02 11:21:21 +0000</creation_ts>
          <short_desc>Add test for package postinsts</short_desc>
          <delta_ts>2016-12-16 13:40:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>2.2</version>
          <rep_platform>All</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.3 M1</target_milestone>
          <dependson>5319</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Jose Perez C">jose.perez.carranza</assigned_to>
          <cc>bill.randle</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
          
          <qa_contact name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54931</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-02 11:21:21 +0000</bug_when>
    <thetext>We need to verify that package postinsts are correctly executed in all situations.  Something like this:

image contains test-postinst-rootfs and test-postinst-delayed packages, one of these runs at rootfs time and the other refuses to run at rootfs time and should run at first boot.  They can simply touch a file to indicate that they&apos;ve been ran.

Build the image, check the contents *before* booting, verify that test-postinst-rootfs has ran it&apos;s maintainer scripts and -delayed has not.  Boot in qemu, then verify that both -rootfs and -delayed have touched their files.

Repeat for both sysvinit and systemd, and for rpm/ipk/dpkg (six combinations in total).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68024</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-11-07 14:03:42 +0000</bug_when>
    <thetext>*** Bug 5677 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68680</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-11-29 14:29:07 +0000</bug_when>
    <thetext>Patch sent to contrib and tested on top of the patch sent by Francisco for bug 5319 is working correctly.  

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=JosePerez/postinstall-rootfs-boot&amp;id=f1d954cac589c4a9401f4027039eb0a27a4dc64c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68868</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-12-06 17:23:35 +0000</bug_when>
    <thetext>Patch sent to the list 

http://lists.openembedded.org/pipermail/openembedded-core/2016-December/129703.html  

---- Note ---

Above patch depends of:

http://lists.openembedded.org/pipermail/openembedded-core/2016-November/129249.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69187</commentid>
    <comment_count>4</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-12-16 13:40:55 +0000</bug_when>
    <thetext>Merged on master 

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

    </bug>

</bugzilla>