| Summary: | useradd: missing /bin/false with ipk packages | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Louis Rannou <louis.rannou> |
| Component: | core | Assignee: | Unassigned <unassigned> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | meta.mr.watcher, meta.watcher, randy.macleod, ross.burton, tgamblin |
| Version: | unspecified | ||
| Target Milestone: | 4.3 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Louis Rannou
2023-06-09 13:46:57 UTC
Thanks Louis. Are you willing and able to submit a patch? https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded Hello, unfortunately, I couldn't find how to maanage the order of those tasks or how to make one depends on the other. I'm unconvinced that this is a Medium+ as this is just useradd pointing out that the shell for the new user doesn't exist _yet_. I'm curious how this doesn't happen with rpm, potentially rpm/dnf is hiding the warning, because the useradd is a preinst and the update-alternatives are postinsts, so it's entirely correct for the useradd fragment (dbus's preinst) to execute before update-alternatives (buybox postinst). Maybe I misunderstood something In the log.do_rootfs in case of packages rpm, it's installing busybox and running update-alternative commands (as postinstall) around line 880. I think this is were /bin/false should be created. useradd commands are done far later at line 4575. In the case of ipks, I see some log about busybox installation first, then the failing useradd occurs, and then the update-alternatives are done. Note that some useradd are done after. I am not sure, but it looks like busybox postinstall is done right after its installation in rpms while it's delayed in ipks. I hope that helps, Louis Sure, but they're both behaving "correctly": there's no explicit dependency on busybox from dbus. rpm and opkg are just installing and configuring in a different order. Is this causing any actual problems, or is it just a warning that you noticed in the log? It's just something I noticed. I thought it revealed a missing dependency but it's probably fine as it is Ross and Louis seem to agree that this isn't a bug. Re-open if that's not accurate. |