Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48471 - init reads /etc/conf.d/ypbind before dhcp is run
Summary: init reads /etc/conf.d/ypbind before dhcp is run
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-20 09:06 UTC by Rick F
Modified: 2004-07-23 23:39 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick F 2004-04-20 09:06:29 UTC
NISDOMAIN is provided by DHCP, which is run when the network interface is brought up.  Even though /etc/init.d/ypbind is run *after* the network interfaces are initialized, the variable YP_DOMAIN is already set.

DHCPC sets up the file /etc/yp.conf with the NISDOMAIN name.  Because this is a laptop, I need to set the YP_DOMAIN dynamically.  /etc/conf.d/ypbind contains the following:
YP_DOMAIN=`head -1 /etc/yp.conf | cut -f 2 -d\ `
Because this file is run before DHCPC, the value it reads from yp.conf is incorrect.

Reproducible: Always
Steps to Reproduce:
1.Boot
2.
3.

Actual Results:  
ypbind fails to connect to an NIS server
NIS services are disrupted, passwd, autofs, etc.

Expected Results:  
ypbind uses the NISDOMAIN set by DHCP.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-23 23:39:58 UTC
in ypbind-1.17.2-r1 and onward, the nisdomainname is set using /etc/init.d/domainname...

the best solution for you is to just have 'ypdomainname' run in your net.ethX's postup() function.