| Summary: | Update /etc/hosts with hostname | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ross Burton <ross.burton> |
| Component: | core | Assignee: | Chen Qi <Qi.Chen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | matthias.schoepfer, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie |
| Version: | 2.6 | ||
| Target Milestone: | 2.7 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
| Bug Depends on: | |||
| Bug Blocks: | 13077 | ||
|
Description
Ross Burton
2018-12-12 12:07:31 UTC
I see the same problem, but in my case, (systemd with PACKAGECONFIG myhostname), it should work *without* touching /etc/hosts. But still, it does not. I could resolve the issue with this systemd_%.bbappend:
PACKAGECONFIG += "myhostname \
"
FILES_${PN} += "${libdir}/libnss_myhostname.so.2 \
"
do_install_append() {
install -m 0644 ${B}/libnss_myhostname.so.2 ${D}${libdir}
}
If you want me to make a patch for it, let me know. A patch would be good but I don't think you'll need it, as out of the box it gets packaged into libnss-myhostname. Hi Ross! Thanks for the hint. I still have not found out, how I should know that I need to add libnss-myhostname, but that fixed it for me! Regards! I think the original issue was fixed with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=53cebfdfcc189a65de82eccdbd18acf4d979e624 |