<?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>9261</bug_id>
          
          <creation_ts>2016-03-15 13:36:14 +0000</creation_ts>
          <short_desc>Can&apos;t distinguish between delayed and failed postinst</short_desc>
          <delta_ts>2018-01-31 10:16:40 +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.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=11096</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>jose.perez.carranza</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>59970</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-15 13:36:14 +0000</bug_when>
    <thetext>There&apos;s no way to tell if a postinst at rootfs time or is requesting to be delayed.

Example: typo in eudev meant that the rootfs-time postinst to run qemu and generate a host-specific file failed, but there&apos;s no way of telling this without reading the logs as on first boot the postinst will run again and generate the file.

I propose that we adopt &quot;exit 75&quot; from a postinst as meaning the postinst wants to be delayed until first boot.  Any other exit code is an error, and should result in a clear warning (and re-run at first boot).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59971</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-15 13:38:12 +0000</bug_when>
    <thetext>Oh I chose 75 as there&apos;s an attempt at standardising exit codes in sysexits.h, and 75 is EX_TEMPFAIL (&quot;temporary failure, try again later&quot;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78063</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-11-08 16:28:20 +0000</bug_when>
    <thetext>I think my solution in bug 11096 is better (and already comes with a working patchset ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79281</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2018-01-31 10:16:40 +0000</bug_when>
    <thetext>Patchset merged to master:
http://lists.openembedded.org/pipermail/openembedded-core/2018-January/146895.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>