[oe-commits] Mark Hatle : rootfs_rpm.bbclass: Enable pre and post install scripts

git at git.openembedded.org git at git.openembedded.org
Fri Nov 11 11:01:54 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 3e7120d6a9fd5e46214673d0a6e1085a7314ff42
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3e7120d6a9fd5e46214673d0a6e1085a7314ff42

Author: Mark Hatle <mark.hatle at windriver.com>
Date:   Thu Nov 10 10:30:21 2011 -0600

rootfs_rpm.bbclass: Enable pre and post install scripts

[YOCTO #1755]

We change the want the RPM rootfs install works to install pre and post install
scripts.  The new method uses a script helper that is invoked by RPM outside
of the normal chroot.

The wrapper is dynamically generated prior to the install starting.  It will
check the return code of the script.  If the script fails, it will store a copy
to be executed on the first system boot.  This is similar to the previous
mechanism.

In addition, a line of debug was added to the scripts as written by package_rpm
to list which package and which script for later debugging, if necessary.

Signed-off-by: Mark Hatle <mark.hatle at windriver.com>

---

 meta/classes/package_rpm.bbclass                   |   33 ++++-
 meta/classes/rootfs_rpm.bbclass                    |   25 +---
 .../rpm/rpm/rpm-scriptletexechelper.patch          |  159 ++++++++++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    3 +-
 4 files changed, 199 insertions(+), 21 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=3e7120d6a9fd5e46214673d0a6e1085a7314ff42




More information about the Openembedded-commits mailing list