]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:39:01 +0000 (16:39 +0000)
commit5d74a2bbe036cf586b76aef0d9907ecb3d4a5f1d
treeb5ad80a1fab6cdbf97d9b1998f0e1c2060c4171a
parenta32d9dbc25fce5e8566681f0c7f606eedaaf3933
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.

(From OE-Core rev: 3e7120d6a9fd5e46214673d0a6e1085a7314ff42)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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