mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user