| Summary: | base-passwd is not being installed early enough during rootfs generation with package_rpm | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Scott Garman <scott.a.garman> | ||||
| Component: | meta-yocto | Assignee: | Scott Garman <scott.a.garman> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | andrei, edwin.zhai, mark.hatle, poky.bs.watcher, poky.watcher, sgw | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.2 M4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | (P1) 2012-03-23 Fix in master | ||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Bug Depends on: | |||||||
| Bug Blocks: | 1794 | ||||||
| Attachments: |
|
||||||
|
Description
Scott Garman
2012-03-15 18:45:50 UTC
Created attachment 376 [details]
do_rootfs log
Note, this bug does not occur when using the ipk packaging backend. Reproduced this bug. I will dig into it as much as i can. One hacky fix:
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index a6d46d7..5f7877d 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -431,7 +431,11 @@ package_install_internal_rpm () {
fi
- cat ${target_rootfs}/install/install_solution.manifest > ${target_rootfs}/install/total_solution.manifest
+ in=${target_rootfs}/install/install_solution.manifest
+ out=${target_rootfs}/install/total_solution.manifest
+ cat $in | grep /base-passwd-[0-9] > $out
+ cat $in | grep /shadow-[0-9] >> $out
+ cat $in | grep -v /shadow-[0-9] | grep -v /base-passwd-[0-9] >> $out
cat ${target_rootfs}/install/install_multilib_solution.manifest >> ${target_rootfs}/install/total_solution.manifest
# Construct install scriptlet wrapper
I'm currently testing a variation on Richard's fix for this. Fixed in oe-core and poky master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c65d82a88ad8dbd27287e94fb62b98017941fb91 |