Bug 8565 - Add global preinst/postinst hooks to opkg
Summary: Add global preinst/postinst hooks to opkg
Status: ACCEPTED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.3
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: next-minor
Assignee: Alex Stewart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-10-24 16:55 UTC by Alejandro del Castillo
Modified: 2021-07-08 15:21 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2015-10-24 16:55:02 UTC
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
Comment 1 Alejandro del Castillo 2017-06-12 18:50:48 UTC
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.