Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 77839

Summary: baselayout-1.11.8-r1 fails to recognize net.eth1 as being up
Product: Gentoo Linux Reporter: Henrik Brix Andersen <henrik>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2004.3   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of 'emerge --info'
fixes net dependancies

Description Henrik Brix Andersen 2005-01-13 07:33:49 UTC
I have just upgraded to (the ~x86 version of) baselayout-1.11.8-r1. There seems to be a problem with only net.eth0 being recognized as providing network. See the following example:

sponge ~ # /etc/init.d/net.eth1 status
 * status:  started
sponge ~ # /etc/init.d/postfix restart
 * Stopping postfix ...                                               [ ok ]
 * Starting eth0
 *    Running preup function
 *       No link on eth0, aborting configuration
 *    preup eth0 failed
 * Starting postfix ...                                               [ ok ]
sponge ~ #


All the net.ethX entries are symlinks to net.lo:

sponge ~ # ls -l /etc/init.d/net.*
lrwxrwxrwx  1 root root     6 Jan 13 13:35 /etc/init.d/net.eth0 -> net.lo
lrwxrwxrwx  1 root root     6 Jan 13 13:35 /etc/init.d/net.eth1 -> net.lo
-rwxr-xr-x  1 root root 23181 Jan 13 13:16 /etc/init.d/net.lo
-rwxr-xr-x  1 root root  4414 Jan  6 11:39 /etc/init.d/net.ppp0


RC_NET_STRICT_CHECKING is set to "no":

sponge ~ # grep ^RC_NET_STRICT_CHECKING /etc/conf.d/rc
RC_NET_STRICT_CHECKING="no"


net.eth0 is an ethernet card, net.eth1 is a wifi card:

sponge ~ # cat /etc/conf.d/net
config_eth0=( "dhcp" )

modules_eth1=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dipw2100"
config_eth1=( "dhcp" )

preup() {
        if [ "${IFACE}" != "eth0" ]; then
            return 0
        fi

        if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then
                ewarn "No link on ${IFACE}, aborting configuration"
                return 1
        fi
}
Comment 1 Henrik Brix Andersen 2005-01-13 07:34:58 UTC
Created attachment 48396 [details]
Output of 'emerge --info'
Comment 2 Henrik Brix Andersen 2005-01-13 07:38:26 UTC
By the way, I am using a wpa_supplicant module as provided by Uberlord for testing purposes - doubt it has any influence, though.
Comment 3 Henrik Brix Andersen 2005-01-13 08:19:03 UTC
Both net.eth0 and net.eth1 are in runlevel default:

sponge ~ # rc-status default|grep net
 net.eth0                                                [   off ]
 net.eth1                                              [ started ]
 netmount                                              [ started ]
Comment 4 Henrik Brix Andersen 2005-01-13 11:54:35 UTC
I just downgraded to baselayout-1.11.8 - problem persists.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-01-13 12:34:44 UTC
Created attachment 48420 [details, diff]
fixes net dependancies

In CVS - will be in baselayout-1.11.9
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-01-31 01:59:30 UTC
Fixed in baselayout-1.11.9