diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-01-22 16:44:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-22 15:54:26 +0000 |
commit | 202263aeca837dc7b6615a3dc34569c199163733 (patch) | |
tree | 7bfffcd24487ffd15094827d5985ce2ee0b8da96 /meta/classes/rootfs_rpm.bbclass | |
parent | f8832d969746fb879e63d1b28e6beef5ab82a39d (diff) | |
download | openembedded-core-contrib-202263aeca837dc7b6615a3dc34569c199163733.tar.gz |
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@windriver.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.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 7d789cc8fdc..accd7d9c3c7 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 |