summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorKang Kai <kai.kang@windriver.com>2013-02-25 10:57:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-01 13:03:26 +0000
commitc2fefcdc185e8e43ac4aa8c31d03ae70f113eeee (patch)
tree6857a850ef0b590744948efe377aa9040879e69d /meta/classes/rootfs_rpm.bbclass
parent0ca565d70c9803b7386996c9fb0c843078ad62f6 (diff)
downloadpoky-c2fefcdc185e8e43ac4aa8c31d03ae70f113eeee.tar.gz
rootfs_rpm: move run-postinsts scripts to rpm recipe
Move run-postinsts scripts from rootfs_rpm.bbclass to rpm recipe. That is the same way for dpkg and opkg to deal the post install scripts. (From OE-Core rev: 04607b0cd496837f10ef78cf43597ec1d2e13f2e) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass23
1 files changed, 0 insertions, 23 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 9dc2bf997c..3442d48363 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -29,11 +29,6 @@ do_rootfs[vardepsexclude] += "BUILDNAME"
29RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; " 29RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; "
30RPM_POSTPROCESS_COMMANDS = "rpm_setup_smart_target_config; " 30RPM_POSTPROCESS_COMMANDS = "rpm_setup_smart_target_config; "
31 31
32#
33# Allow distributions to alter when [postponed] package install scripts are run
34#
35POSTINSTALL_INITPOSITION ?= "98"
36
37rpmlibdir = "/var/lib/rpm" 32rpmlibdir = "/var/lib/rpm"
38opkglibdir = "${localstatedir}/lib/opkg" 33opkglibdir = "${localstatedir}/lib/opkg"
39 34
@@ -114,24 +109,6 @@ fakeroot rootfs_rpm_do_rootfs () {
114 fi 109 fi
115 done 110 done
116 111
117 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
118 # Stop $i getting expanded below...
119 i=\$i
120 cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
121#!/bin/sh
122for i in \`ls /etc/rpm-postinsts/\`; do
123 i=/etc/rpm-postinsts/$i
124 echo "Running postinst $i..."
125 if [ -f $i ] && $i; then
126 rm $i
127 else
128 echo "ERROR: postinst $i failed."
129 fi
130done
131rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
132EOF
133 chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
134
135 install -d ${IMAGE_ROOTFS}/${sysconfdir} 112 install -d ${IMAGE_ROOTFS}/${sysconfdir}
136 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version 113 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
137 114