Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130390 - dhclient fails if the network interface isn't in proper state
Summary: dhclient fails if the network interface isn't in proper state
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-18 11:11 UTC by Javier Villavicencio (RETIRED)
Modified: 2006-07-18 13:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example. (dhcp.diff,835 bytes, patch)
2006-04-18 11:13 UTC, Javier Villavicencio (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Villavicencio (RETIRED) gentoo-dev 2006-04-18 11:11:22 UTC
I have found that the default /sbin/dhclient-script works and our /lib/rcscripts/net.modules.d wrapper doesn't just because the network interface doesn't has been prepared with a certain state. 
When this happens, the /etc/init.d/net.?? script always fails in the "deconfig" (or dhclient's PREINIT) state.
Comment 1 Javier Villavicencio (RETIRED) gentoo-dev 2006-04-18 11:13:03 UTC
Created attachment 84913 [details, diff]
Example.

This is (somehow) what dhclient-scritp does at this stage (deconfig/PREINIT) of the process, I don't think this should be done this way, maybe a new wrapper function in the freebsd script would be better.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-19 16:55:04 UTC
Roy can you take a look to this? You usually have more clues about dhcp than me :)
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-04-20 15:15:45 UTC
Starting with baselayout-1.12.0_pre17 we've dropped the helpers.d directory entirely and it's now up to each dhcp client to configure itself - which means this issue should be solved once bsd baselayout syncs upto pre17.
Comment 4 Javier Villavicencio (RETIRED) gentoo-dev 2006-07-18 13:14:58 UTC
The quick fix added to current baselayout meanwhile.