| View previous topic :: View next topic |
| Author |
Message |
RayDude Veteran


Joined: 29 May 2004 Posts: 1089 Location: San Jose, CA
|
Posted: Wed Oct 01, 2008 10:57 am Post subject: [solved] dhcpcd is overwriting /etc/resolv.conf even with -R |
|
|
Latest emerge has fouled my work gentoo box. I don't know if dhcpcd emerged or not. I could check the log.
But at any rate, resolv.conf is being overwritten by dhcpcd even though I have this in my eth1 config line in /etc/conf.d/net:
| Code: | config_eth1=("dhcp")
dhcpcd_eth1="-R -Y -h ${HOSTNAME}" |
Can someone give me any idea why dhcpcd would ignore -R?
Thanks in advance,
Raydude
PS dhcpcd 4.0.1-r1 may have just emerged... Anyone else having this problem? _________________ Some day there will only be free software.
Last edited by RayDude on Wed Oct 01, 2008 11:27 am; edited 1 time in total |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6097 Location: Blighty
|
|
| Back to top |
|
 |
RayDude Veteran


Joined: 29 May 2004 Posts: 1089 Location: San Jose, CA
|
Posted: Wed Oct 01, 2008 11:11 am Post subject: |
|
|
Thanks Uberlord!
Unfortunately, my network here at work requires me to not overwrite the file as their dhcp servers are ... not programmed correctly? Or something like that.
Here's the fix for me:
/etc/init.d/conf.d/net
| Code: | config_eth1=("dhcp")
dhcpcd_eth1="‐C resolv.conf" |
(I haven't tested this yet with a reboot, will as soon as vmplayer re-emerges)
DHCPCD 4 changed the way it controls stuff and a lot of options have changed.
Thanks again,
Raydude
Update: The above file did not work. Seems there are problems with scripting...
This works and its all the time I can give the issue:
| Code: | config_eth1=("dhcp")
dhcpcd_eth1="eth1 -C resolv.conf" |
_________________ Some day there will only be free software.
Last edited by RayDude on Wed Oct 01, 2008 11:25 am; edited 1 time in total |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6097 Location: Blighty
|
Posted: Wed Oct 01, 2008 11:16 am Post subject: |
|
|
Yes, that is also a fix, but the patch attempts to make -R work when compat mode is in use. _________________ When baselayout tells you to update config files or things break WE REALLY DO MEAN IT
Please add SOLVED to the thread title if your issue has been
Strip comments from configs please |
|
| Back to top |
|
 |
RayDude Veteran


Joined: 29 May 2004 Posts: 1089 Location: San Jose, CA
|
Posted: Wed Oct 01, 2008 11:26 am Post subject: |
|
|
Note: I had to specify the device in my dhcpcd_eth1 line. I updated my post above. _________________ Some day there will only be free software. |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6097 Location: Blighty
|
Posted: Wed Oct 01, 2008 1:43 pm Post subject: |
|
|
New patch on the bug - should really fix now. _________________ When baselayout tells you to update config files or things break WE REALLY DO MEAN IT
Please add SOLVED to the thread title if your issue has been
Strip comments from configs please |
|
| Back to top |
|
 |
|