<?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>9658</bug_id>
          
          <creation_ts>2016-05-20 15:19:53 +0000</creation_ts>
          <short_desc>Detect postinst failing verses asking to be delayed?</short_desc>
          <delta_ts>2018-02-03 21:03:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62364</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-05-20 15:19:53 +0000</bug_when>
    <thetext>It would be useful if there were a way to distinguish between a postinst failing because of errors or a postinst deciding to delay its execution until first boot in the install log.  At the moment all non-successful postinst are assumed to be delayed on purpose.

I suggest exit 75 for &quot;I wish to be executed on the host please&quot; (#define EX_TEMPFAIL 75 is a semi-standard in sysexits.h) and anything else being reported differently.  The goal being that OE&apos;s rootfs task can warn when postinsts are delayed without using exit 75 and we can notice if eg a postinst that should run on the build host is failing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69004</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-12-09 19:35:57 +0000</bug_when>
    <thetext>Shouldn&apos;t that be a convention on how postinst are authored and not part of opkg?

 pkg_postinst_PACKAGENAME() {
     if [ x&quot;$D&quot; = &quot;x&quot; ]; then
          # Actions to carry out on the device go here
     else
          exit 75
     fi
     }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79326</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-03 21:03:09 +0000</bug_when>
    <thetext>Alex&apos;s patches make this moot, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>