<?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>8565</bug_id>
          
          <creation_ts>2015-10-24 16:55:02 +0000</creation_ts>
          <short_desc>Add global preinst/postinst hooks to opkg</short_desc>
          <delta_ts>2021-07-08 15:21:16 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>next-minor</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          
          
          
          <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>55707</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-10-24 16:55:02 +0000</bug_when>
    <thetext>By adding global hooks (preinst/postinst files in a directory) we can enable several use cases:
  - Rollbacks : clients can use preinst to make snapshots that they can rollback to on postinst in case of errors
  - Drive GPIO lines to make memory readable</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74013</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-06-12 18:50:48 +0000</bug_when>
    <thetext>The return code from the global hook should be passed on to opkg. This will enable use cases were global hooks can be used to signal reboots. By passing the global hook return value to opkg, opkg caller can act on it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>