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>
This commit is contained in:
parent
a789dc9175
commit
bd10a6d257
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue