summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-03-03 17:31:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-13 11:45:09 +0000
commitf473660b5fb051140118f212b1a8c6201ac693f3 (patch)
tree6e308bf0e3d9b3af18dd9f99cade20adbf304b04 /meta/classes/rootfs_rpm.bbclass
parentf9bdcb2eb122aa91dd9e203bc3a63a246c3d4d37 (diff)
downloadpoky-f473660b5fb051140118f212b1a8c6201ac693f3.tar.gz
rootfs_rpm.bbclass: rename postinst trigger script
Use 'run-postinsts' as trigger script name as it describes better the intent of it. (From OE-Core rev: 6bc50e531a15728be019af7bec5bce704fb72f8f) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 48133f080b..9039b21a07 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -112,7 +112,7 @@ EOF
112 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d 112 install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
113 # Stop $i getting expanded below... 113 # Stop $i getting expanded below...
114 i=\$i 114 i=\$i
115 cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure << EOF 115 cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
116#!/bin/sh 116#!/bin/sh
117for i in /etc/rpm-postinsts/*; do 117for i in /etc/rpm-postinsts/*; do
118 echo "Running postinst $i..." 118 echo "Running postinst $i..."
@@ -122,9 +122,9 @@ for i in /etc/rpm-postinsts/*; do
122 echo "ERROR: postinst $i failed." 122 echo "ERROR: postinst $i failed."
123 fi 123 fi
124done 124done
125rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure 125rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
126EOF 126EOF
127 chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure 127 chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
128 128
129 install -d ${IMAGE_ROOTFS}/${sysconfdir} 129 install -d ${IMAGE_ROOTFS}/${sysconfdir}
130 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version 130 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version