summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_rpm.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 7d789cc8fd..accd7d9c3c 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -108,7 +108,8 @@ fakeroot rootfs_rpm_do_rootfs () {
108 i=\$i 108 i=\$i
109 cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF 109 cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
110#!/bin/sh 110#!/bin/sh
111for i in /etc/rpm-postinsts/*; do 111for i in `ls /etc/rpm-postinsts/`; do
112 i=/etc/rpm-postinsts/$i
112 echo "Running postinst $i..." 113 echo "Running postinst $i..."
113 if [ -f $i ] && $i; then 114 if [ -f $i ] && $i; then
114 rm $i 115 rm $i