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

Bug 76385

Summary: net.lo doesnt handle non-existing interfaces nicely
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 66472    

Description SpanKY gentoo-dev 2005-01-02 00:50:17 UTC
i removed my 2nd network card to install a diff one and the old kernel didnt have the driver ... so when eth1 tried to startup, i saw this:

 * Starting eth1
 *    Bringing up eth1
 *       192.168.1.4
eth1: error fetching interface information: Device not found           [ ok ]

looking into it, net.lo has this little code in run_start():
    ! interface_exists ${iface} && /sbin/modprobe ${iface} &>/dev/null

the modprobe return should be checked ... if the interface doesnt exist, and modprobe failed to do anything useful, we should bail instead of trundling on

perhaps:
    if ! interface_exists ${iface} ; then
        if ! /sbin/modprobe ${iface} &>/dev/null ; then
            eerror "${iface} does not exist :("
            return 1
        if
    fi
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-01-07 07:24:50 UTC
In CVS - will be in baselayout-1.11.9
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-31 00:01:35 UTC
Fixed by baselayout-1.11.9