Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114519 - sys-apps/baselayout-1.12.0_pre11-r3 doesn't honour dhcp_* options for dhcpcd
Summary: sys-apps/baselayout-1.12.0_pre11-r3 doesn't honour dhcp_* options for dhcpcd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 04:17 UTC by comabug
Modified: 2005-12-20 10:11 UTC (History)
0 users

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


Attachments
Proposed patch against /lib/rcscripts/net.modules.d/dhcpcd. (dhcpcd.patch,373 bytes, patch)
2005-12-05 04:20 UTC, comabug
Details | Diff
Fixes all dhcp clients (dhcp.patch,6.04 KB, patch)
2005-12-05 08:26 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description comabug 2005-12-05 04:17:04 UTC
In sys-apps/baselayout-1.12.0_pre11-r3 /lib/rcscripts/net.modules.d/dhcpcd
doesn't honour the dhcp_* options in /ect/conf.d/net. For example it sends the
hostname even if dhcp_eth0="nosendhost".

Reproducible: Always
Steps to Reproduce:
1. Add config_eth0=( "dhcp" ) and dhcp_eth0="nosendhost" to /etc/conf.d/net.
2. /etc/init.d/net.eth0 start
3. Notice that dhcpcd has "-h hostname" in its command line.
Actual Results:  
The hostname is sent to the dhcp server.

Expected Results:  
There should have been no "-h hostname" used.

A fix for this is to insert the line 'd="${!d}"' below line 93 of
/lib/rcscripts/net.modules.d/dhcpcd. Patch attached.
Comment 1 comabug 2005-12-05 04:20:10 UTC
Created attachment 74092 [details, diff]
Proposed patch against /lib/rcscripts/net.modules.d/dhcpcd.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-12-05 08:26:32 UTC
Created attachment 74102 [details, diff]
Fixes all dhcp clients

This patch should fix all dhcp clients
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-12-20 10:11:30 UTC
Fixed in baselayout-1.12.0_pre12