]> code.ossystems Code Review - openembedded-core.git/commit
rootfs_rpm.bbclass: Enable pre and post install scripts
authorMark Hatle <mark.hatle@windriver.com>
Thu, 10 Nov 2011 16:30:21 +0000 (10:30 -0600)
committerSaul Wold <sgw@linux.intel.com>
Fri, 11 Nov 2011 08:33:49 +0000 (00:33 -0800)
commit3e7120d6a9fd5e46214673d0a6e1085a7314ff42
tree1dfc78dc1355d509cbf5dd9eb88190a94be7bf08
parent815560c0ee5a1a984b7d0fc8417c46606854e7fe
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@windriver.com>
meta/classes/package_rpm.bbclass
meta/classes/rootfs_rpm.bbclass
meta/recipes-devtools/rpm/rpm/rpm-scriptletexechelper.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.0.bb