Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288311 - sys-apps/baselayout-1.12.11.1: init scripts dependencies work wrong
Summary: sys-apps/baselayout-1.12.11.1: init scripts dependencies work wrong
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-09 14:34 UTC by Arthur D.
Modified: 2009-10-11 17:05 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 Arthur D. 2009-10-09 14:34:53 UTC
Hello.
I have bridge network device configured which consumes eth0 and eth1 devices.
This is my main network device.
All IP addresses and routings belong to it. It has address 192.168.0.48/24
My DNS server has address 192.168.0.200

Here's the problem. Some init scripts that depends on net fail to start because
they don't have access to DNS server because they start before br0 device is up (it's set in default runlevel). These are: ntp-client, ntpd, nfs, nfsmount.

Service distccd fails to start also, because I configured it to listen on IP address 192.168.0.48 which is not set up at the moment service tries to start.

After system boots, I can start services manually with success.

I didn't find any configuration option that says what network script should provide net service to init scrits or something. So probably they consider net.lo to be main network script.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Some services failed to start because of wrong order. They start after net.lo and net.eth{1,2} started which doensn't provide access to network. It's provided by net.br0 init script.

Expected Results:  
The order should be right: net.br0 start first; all services depending on net should be started after it.

Here's some commands output you may be interested in:

 ~ $ cat /etc/conf.d/net

# To prefer iproute2 over ifconfig (both are installed)
modules=( "iproute2" )

# Add ports to bridge br0
bridge_br0="eth0 eth1"

# Configure the ports to null values so dhcp does not get started 
config_eth0=( "null" )
config_eth1=( "null" )

# Give the bridge an address
config_br0=( "192.168.0.48/24" )
routes_br0=( "default via 192.168.0.100" )

# Depend on eth0 and eth1 as they may require extra configuration
depend_br0() {
  need net.eth0 net.eth1
}

# Configure the bridge - "man brctl" for more details
brctl_br0=( "setfd 0" "sethello 10" "stp off" )

 ~ $ ls -l /etc/init.d/net*
lrwxrwxrwx 1 root root     6 Sep 12 16:08 /etc/init.d/net.br0 -> net.lo
lrwxrwxrwx 1 root root     6 Sep 12 14:45 /etc/init.d/net.eth0 -> net.lo
lrwxrwxrwx 1 root root     6 Sep 12 16:08 /etc/init.d/net.eth1 -> net.lo
-rwxr-xr-x 1 root root 30696 Feb 28  2008 /etc/init.d/net.lo
-rwxr-xr-x 1 root root  3311 Feb 28  2008 /etc/init.d/netmount

 ~ $ ls -l /etc/runlevels/*/net*
lrwxrwxrwx 1 root root 18 Sep 12 14:45 /etc/runlevels/boot/net.lo -> /etc/init.d/net.lo
lrwxrwxrwx 1 root root 19 Sep 12 16:09 /etc/runlevels/default/net.br0 -> /etc/init.d/net.br0
lrwxrwxrwx 1 root root 20 Sep 12 14:45 /etc/runlevels/default/netmount -> /etc/init.d/netmount
Comment 1 SpanKY gentoo-dev 2009-10-11 00:45:48 UTC
you probably didnt set RC_NET_STRICT_CHECKING
Comment 2 Arthur D. 2009-10-11 17:05:42 UTC
(In reply to comment #1)
> you probably didnt set RC_NET_STRICT_CHECKING

Yep. Thanks.