Bug 481078 - mkinitrd dhclient fails to DHCP
mkinitrd dhclient fails to DHCP
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
Depends On:
Blocks: K12LTSP F11Blocker/F11FinalBlocker
  Show dependency treegraph
Reported: 2009-01-21 20:58 EST by Warren Togami
Modified: 2009-02-03 05:49 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-02-03 05:49:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Warren Togami 2009-01-21 20:58:49 EST

if (execl(DHCLIENT, DHCLIENT, "-4", "-1", "-n", NULL) == -1)

It seems that -4 is an invalid parameter, because dhclient 4.0.0 and 4.1.0 both print syntax help when you use it.

dhclient -v -1 -n eth0
[outputs the syntax help]

dhclient -v -1 -n
execve (/sbin/dhclient-script, ...): No such file or directory
No broadcast interfaces found - exiting.

Bringing up the eth0 interface manually before dhclient makes no apparent difference in dhclient's behavior.

dhclient -v -1 -n eth0
Sending on   Socket/fallback
receive_packet failed on eth0: Network is down
DHCPDISCOVER on eth0 to port 67 interval 5
send_packet: Network is down

ifconfig eth0 up
dhclient -v -1 -n eth0
[This works!  Although it complains about dhclient-script not existing.  nash segfaults during parsing its output though.]

1. /var/run should be created by mkinitrd.
2. -4 parameter to dhclient is invalid.  dhclient's man page is wrong, or bug?
3. eth0 should be brought up before dhclient?
4. dhcp-4.1.0 dhclient is broken in some way compared to 4.0.0?
5. nash segfaults because it cannot handle parsing the output of dhclient's output.  (Or maybe the output of dhcp 4.0.0 is different from 4.1.0.)
6. dhclient shouldn't complain about missing dhclient-script??
Comment 1 Hans de Goede 2009-02-03 05:49:32 EST
A patch fixing this has been committed to mkinitrd's git, so this will be fixed in the next rawhide build, closing.

Note You need to log in before you can comment on or make changes to this bug.