[oe-commits] Chen Qi : rootfs_rpm.bbclass: fix the unexpected postinst error
git at git.openembedded.org
git at git.openembedded.org
Tue Jan 22 16:01:09 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 202263aeca837dc7b6615a3dc34569c199163733
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=202263aeca837dc7b6615a3dc34569c199163733
Author: Chen Qi <Qi.Chen at windriver.com>
Date: Tue Jan 22 16:44:05 2013 +0800
rootfs_rpm.bbclass: fix the unexpected postinst error
If the /etc/rpm-postinsts/ directory was empty, the following error
would occur at system startup.
ERROR: postinst /etc/rpm-postinsts/* failed
This patch fixes this issue.
[YOCTO #3767]
Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/rootfs_rpm.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 7d789cc..accd7d9 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -108,7 +108,8 @@ fakeroot rootfs_rpm_do_rootfs () {
i=\$i
cat > ${IMAGE_ROOTFS}${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << EOF
#!/bin/sh
-for i in /etc/rpm-postinsts/*; do
+for i in `ls /etc/rpm-postinsts/`; do
+ i=/etc/rpm-postinsts/$i
echo "Running postinst $i..."
if [ -f $i ] && $i; then
rm $i
More information about the Openembedded-commits
mailing list