| Summary: | rootfs_rpm.bbclass: maybe no rpm postinst script | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Robert Yang <liezhi.yang> |
| Component: | core | Assignee: | Robert Yang <liezhi.yang> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, meta.mr.watcher, meta.watcher, sgw, yi.zhao, zhenfeng.zhao |
| Version: | 1.3 | ||
| Target Milestone: | 1.4 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
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. |
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.