| Summary: | dhcp fails in netbook | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | liping Ke <liping.ke> |
| Component: | core | Assignee: | Qing He <qing.he> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | dongxiao.xu, meta.mr.watcher, meta.watcher, sgw |
| Version: | 0.9 | ||
| Target Milestone: | 0.9 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Program Management | Documentation change: | --- |
|
Description
liping Ke
2010-07-20 19:34:57 UTC
I've reproduced the bug on Dongxiao's box the error is that /sbin/dhclient-script reports that it can't find ifconfig and route, with the following manual fix it passed and obtained IP correctly. s|\<ifconfig\>|/sbin/ifconfig| s|\<route\>|/sbin/route| It seems that /sbin/ isn't in the script search path. It can be added in the script directly, but should it be in the env? btw, why the bug is marked closed? I checked the source repo but didn't find some commit addressing it. I will verify the bug status after I pull down the latest change this week when I have some time. criping Accidently marked as fixed, this need to be fixed and verified root cauesd, the problem is a bug in dhcp4
when dhclient/dhc6 invokes /sbin/dhclient-script, it clears all environment variables but set only CLIENT_PATH, in dhcp-3.1.3, it reads in Makefile.conf:
CLIENT_PATH = '"PATH=/usr/ucb:/usr/bin:/usr/sbin:/bin:/sbin"'
but in dhcp-4.1.1-P1, it looks in client/Makefile.am:
$(COMPILE) -DCLIENT_PATH='"$(sbindir)"'
since we only copy dhclient into /sbin/ after installation, at build time, sbindir is still /usr/sbin, so search of ifconfig and route fails; further more, it should rather be -DCLIENT_PATH='"PATH=..."' to work properly
fixed in 5fba534b15baa3778bbce2952ac7664bcda4e73c verified on M2 image: http://yoctobuild01.jf.intel.com/milestone/20100731-1/netbook/x86_32/ Thanks& Regards, criping |