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>
This commit is contained in:
parent
f9bdcb2eb1
commit
f473660b5f
|
@ -112,7 +112,7 @@ EOF
|
||||||
install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
|
install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
|
||||||
# Stop $i getting expanded below...
|
# Stop $i getting expanded below...
|
||||||
i=\$i
|
i=\$i
|
||||||
cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure << EOF
|
cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
for i in /etc/rpm-postinsts/*; do
|
for i in /etc/rpm-postinsts/*; do
|
||||||
echo "Running postinst $i..."
|
echo "Running postinst $i..."
|
||||||
|
@ -122,9 +122,9 @@ for i in /etc/rpm-postinsts/*; do
|
||||||
echo "ERROR: postinst $i failed."
|
echo "ERROR: postinst $i failed."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
|
rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||||
EOF
|
EOF
|
||||||
chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}configure
|
chmod 0755 ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
|
||||||
|
|
||||||
install -d ${IMAGE_ROOTFS}/${sysconfdir}
|
install -d ${IMAGE_ROOTFS}/${sysconfdir}
|
||||||
echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
|
echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
|
||||||
|
|
Loading…
Reference in New Issue