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:34 +0000 |
commit | bd10a6d257ab5ce2fc961788c278af7c43637404 (patch) | |
tree | 4446f27c9e75d2f7d8ee2c08b6b542f06e7ae51e | |
parent | a789dc9175017efcf46f868e27a16c21114cfcff (diff) | |
download | ast2050-yocto-poky-bd10a6d257ab5ce2fc961788c278af7c43637404.zip ast2050-yocto-poky-bd10a6d257ab5ce2fc961788c278af7c43637404.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]
(From OE-Core rev: 202263aeca837dc7b6615a3dc34569c199163733)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 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 |