The following code in rootfs_rpm.bbclass: for i in ${IMAGE_ROOTFS}/etc/rpm-postinsts/*; do echo "Delayed package scriptlet: `head -n 3 $i | tail -n 1`" done There maybe no rpm postinst script (e.g., core-image-minimal), and the "*" is not expanded, then there would be error: head: cannot open `rpm-postinsts/*' for reading: No such file or directory We should check whether it exists or not.
Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=553d9dbe0e426a4f933bef291cabfea7ae80f51a
Verified with 1.4_M1. gitinfo: 247b6a3754c2c50318e2a73d79981ba0e9cb560b When build a minimal image, there is no such error.