Page 1 of 1

Error DHCP on interface 'eth0' failed. in Version 63

Posted: Sat Jan 10, 2009 8:56 pm
by wroopy
Hi!

Just tried to use version 63 and I'm using nfs-minimyth-0.21.0-63 and have MM_DHCP_HOSTNAME specified on the command-line.

When booting I get;
Error DHCP on interface 'eth0' failed.

In /var/log/udhpc I get;
sh: -q: not found

I solved the problem by commenting out line 80 in dhcp.pm
# $command = $command . ' ' . qq(-q);

When looking at the parameters udhcp is handling, -q is not mentioned.

/Andreas

Re: Error DHCP on interface 'eth0' failed. in Version 63

Posted: Sun Jan 11, 2009 1:17 am
by Pablo
wroopy wrote:Hi!

Just tried to use version 63 and I'm using nfs-minimyth-0.21.0-63 and have MM_DHCP_HOSTNAME specified on the command-line.

When booting I get;
Error DHCP on interface 'eth0' failed.

In /var/log/udhpc I get;
sh: -q: not found
Thank you for taking the time to troubleshoot this.

It appears that the problem is that the variable $ip_address ends with a new-line. Since the '-q' follows the $ip_address parameter, '-q' is being treated as the start of a new command rather than a parameter of the udhcpc command.

I have fixed this. The fix will be in the next build.
When looking at the parameters udhcp is handling, -q is not mentioned.
MiniMyth uses busybox's udhcpc DHCP client. For this client, '-q' means run once and quit. You can see the parameters by running 'udhcpc --help' in a MiniMyth frontend telnet window.

Posted: Sun Jan 11, 2009 2:17 am
by Pablo
Could you let me know whether or not 0.21.0-64b1-nvidia.180.22 fixes the problem?

Posted: Sun Jan 11, 2009 8:37 pm
by wroopy
Pablo wrote:Could you let me know whether or not 0.21.0-64b1-nvidia.180.22 fixes the problem?
It works fine in 0.21.0-64b1-nvidia.180.22. Thank you!

/Andreas

Posted: Mon Jan 12, 2009 12:42 am
by Pablo
I am glad the fix worked. Thank you for letting me know.